diff options
author | Pat Cox <pcox@fb.com> | 2015-01-05 20:42:31 -0800 |
---|---|---|
committer | Pat Cox <pcox@fb.com> | 2015-01-12 10:13:22 -0800 |
commit | c793d2d5a4fe69c3e636239145139c0afb02fec1 (patch) | |
tree | 9bfc5945bda20d324d39b794a4413da2087990f9 /lib/chef/provider/package | |
parent | 55cdb2c6fa2f0e8a7da074862f95590f088719a2 (diff) | |
download | chef-c793d2d5a4fe69c3e636239145139c0afb02fec1.tar.gz |
Macports provider - provide package
The MacPorts provider should provide package so that you can change the
precedence in provider mappings, with a statement like this:
Chef::Platform::ProviderPriorityMap.instance.priority(
:package, Chef::Provider::Package::Macports, :os => 'darwin'
)
Also, set default priority in mapping so that homebrew wins.
Diffstat (limited to 'lib/chef/provider/package')
-rw-r--r-- | lib/chef/provider/package/macports.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/package/macports.rb b/lib/chef/provider/package/macports.rb index 2f15d4c277..248dc75d28 100644 --- a/lib/chef/provider/package/macports.rb +++ b/lib/chef/provider/package/macports.rb @@ -4,6 +4,7 @@ class Chef class Macports < Chef::Provider::Package provides :macports_package + provides :package, os: "darwin" def load_current_resource @current_resource = Chef::Resource::Package.new(@new_resource.name) |