On Fri, Mar 30, 2012 at 09:07, Luke Kanies <[email protected]> wrote:
> On Mar 30, 2012, at 7:16 AM, Trevor Vaughan wrote:
>
>> Is it possible to create a new type based on a different type?
>> I'd like to do basic inheritance, but I'm not having much luck syntactically.
>
> It at least used to be possible with something like:
>
> Puppet::Type.newtype(:foo, :parent => :bar) { … }
>
> But I think tidy was the only thing that used it, and it might have either 
> been removed or ignored for the last three years and thus no longer quite 
> work.

Well, if it is broken that is certainly a bug.

Trevor, could you explain a little more about what you are trying to
achieve here?  Why is inheritance a desirable property?

-- 
Daniel Pittman
⎋ Puppet Labs Developer – http://puppetlabs.com
♲ Made with 100 percent post-consumer electrons

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to