Skip to content

Commit

Permalink
Merge pull request chef#2721 from patcox/CHEF-2691
Browse files Browse the repository at this point in the history
correct filters for MacPorts package provider
  • Loading branch information
jaymzh committed Jan 10, 2015
2 parents d1272bb + 6e92b1b commit 9b2ba0d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/chef/provider/package/macports.rb
Expand Up @@ -3,7 +3,7 @@ class Provider
class Package
class Macports < Chef::Provider::Package

provides :macports_package, os: "mac_os_x"
provides :macports_package

def load_current_resource
@current_resource = Chef::Resource::Package.new(@new_resource.name)
Expand Down
2 changes: 1 addition & 1 deletion lib/chef/resource/macports_package.rb
Expand Up @@ -20,7 +20,7 @@ class Chef
class Resource
class MacportsPackage < Chef::Resource::Package

provides :macports_package, os: "mac_os_x"
provides :macports_package

def initialize(name, run_context=nil)
super
Expand Down
14 changes: 7 additions & 7 deletions spec/unit/provider_resolver_spec.rb
Expand Up @@ -511,10 +511,11 @@ def resource_class(resource)

supported_providers = [
:apt_package, :bash, :breakpoint, :chef_gem, :cookbook_file, :csh, :deploy,
:deploy_revision, :directory, :dpkg_package, :easy_install_package,
:erl_call, :execute, :file, :gem_package, :git, :http_request, :link, :log, :pacman_package, :paludis_package,
:perl, :python, :remote_directory, :route, :rpm_package, :ruby, :ruby_block, :script,
:subversion, :template, :timestamped_deploy, :whyrun_safe_ruby_block, :yum_package, :homebrew_package,
:deploy_revision, :directory, :dpkg_package, :easy_install_package, :erl_call,
:execute, :file, :gem_package, :git, :homebrew_package, :http_request, :link,
:log, :macports_package, :pacman_package, :paludis_package, :perl, :python,
:remote_directory, :route, :rpm_package, :ruby, :ruby_block, :script, :subversion,
:template, :timestamped_deploy, :whyrun_safe_ruby_block, :yum_package,
]

supported_providers.each do |static_resource|
Expand All @@ -530,9 +531,8 @@ def resource_class(resource)
end

unsupported_providers = [
:bff_package, :dsc_script, :ips_package, :macports_package,
:smartos_package, :solaris_package, :windows_package,
:windows_service,
:bff_package, :dsc_script, :ips_package, :smartos_package,
:solaris_package, :windows_package, :windows_service,
]

unsupported_providers.each do |static_resource|
Expand Down

0 comments on commit 9b2ba0d

Please sign in to comment.