> Hello,
>
> I want to instantiate parsedfile in a provider that I am writing [1]
> and then use that instance to manage my config file.
> I cannot inherit from parsedfile as I am already inheriting from
> base.rb
I think I mentioned that this probably isn't the right answer, but
I'll help you continue with your experiment and see where it gets you.
I *do* recommend you look at resource generation over this, though.
ParsedFile instances (and maybe all providers?) require either a
resource instance or a hash at initialization. If you provide a hash,
then this is considered to be the current state of the resource on
disk. You still need to use the settors to change the state.
This is a bit the flaw of using a provider directly - you have to
handle the transactional bits yourself.
--
Ours is the age that is proud of machines that think and suspicious of
men who try to. -- H. Mumford Jones
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com