On Feb 18, 2013, at 5:55 PM, Trevor Vaughan <[email protected]> wrote:
> I've been playing with how to do this but nothing obvious is working. > > I can specify the parent for both the type and provider but the methods, > parameters, and properties don't seem to come along for the ride. > > In particular, I want everything that the File type currently provides but to > override a few items with system-gathered materials. > > In this case a fact won't work due to the amount of data being > transferred/compared. I don't think you realistically can. The Tidy type used to be a subclass of File, but I don't think it is any more. I think that was the only subclass out there, and I would be surprised if subclassing were remotely simple to get what you wanted out of. I think the File provider is probably actually nowhere near what it needs to be, so I don't think you get anything for subclassing it. That being said, what are you trying for, and how are you actually trying it? The methods should certainly transfer, and I think the parameters should, too. -- Luke Kanies | http://about.me/lak | http://puppetlabs.com/ | +1-615-594-8199 -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-dev?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
