diff options
author | Phil Dibowitz <phil@ipom.com> | 2015-01-13 20:13:22 -0800 |
---|---|---|
committer | Phil Dibowitz <phil@ipom.com> | 2015-01-13 20:13:22 -0800 |
commit | fdae4d506e9d77c7851826648202aa0525ef8955 (patch) | |
tree | 737c635834f433348006fc5f7567afbca1f3c9e5 /lib | |
parent | 7b93aaea8ecb14bdc619d443bd81927a9faf5a1f (diff) | |
parent | c793d2d5a4fe69c3e636239145139c0afb02fec1 (diff) | |
download | chef-fdae4d506e9d77c7851826648202aa0525ef8955.tar.gz |
Merge pull request #2722 from patcox/CHEF-2690
Macports provider - provide package
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/platform/provider_priority_map.rb | 1 | ||||
-rw-r--r-- | lib/chef/provider/package/macports.rb | 1 | ||||
-rw-r--r-- | lib/chef/resource/macports_package.rb | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/platform/provider_priority_map.rb b/lib/chef/platform/provider_priority_map.rb index 765dd74859..aa69761012 100644 --- a/lib/chef/platform/provider_priority_map.rb +++ b/lib/chef/platform/provider_priority_map.rb @@ -66,6 +66,7 @@ class Chef # priority :service, Chef::Provider::Service::Macosx, os: "darwin" + priority :package, Chef::Provider::Package::Homebrew, os: "darwin" end def priority_map 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) diff --git a/lib/chef/resource/macports_package.rb b/lib/chef/resource/macports_package.rb index 71d28b89be..0d4e5dec65 100644 --- a/lib/chef/resource/macports_package.rb +++ b/lib/chef/resource/macports_package.rb @@ -21,6 +21,7 @@ class Chef class MacportsPackage < Chef::Resource::Package provides :macports_package + provides :package, os: "darwin" def initialize(name, run_context=nil) super |