Re: the code, I'd keep the +initialize+ method, factor out the +initialize_plist_dirs+ method and call it from the initializer rather than the within class definition. That way, the Plist loading takes place on object instanciation rather than class loading. Also, I'd log something in the rescue, maybe with Chef::Log.debug, because nothing is more frustrating than tracking down errors to swallowed exceptions.
Archive powered by MHonArc 2.6.16.