lib/wright/resource/package.rb in wright-0.1.0 vs lib/wright/resource/package.rb in wright-0.1.1

- old
+ new

@@ -61,10 +61,12 @@ end end Wright::DSL.register_resource(Wright::Resource::Package) -# hard-coded for now -# TODO: remove this -Wright::Config[:resources] ||= {} -Wright::Config[:resources][:package] = - { provider: 'Wright::Provider::Package::Apt' } +Wright::Config[:resources][:package] ||= {} + +case Wright::Util.os_family +when 'debian' + Wright::Config[:resources][:package][:provider] ||= + 'Wright::Provider::Package::Apt' +end