Well, the main issue was that I couldn't figure out how to inherit from another custom type.
If you recall the concat module that I posted previously, I'm trying to do something that uses concat but has additional parameters. I think I've figured out a workaround involving dynamically creating and injecting concat resources at the right spots but it feels weird. Thanks, Trevor On Fri, Mar 30, 2012 at 12:49 PM, Daniel Pittman <[email protected]> wrote: > 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. > -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 [email protected] -- This account not approved for unencrypted proprietary information -- -- 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.
