summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md7
-rw-r--r--Gemfile.lock10
-rw-r--r--VERSION2
-rw-r--r--chef-config/lib/chef-config/version.rb2
-rw-r--r--lib/chef/provider/package/bff.rb (renamed from lib/chef/provider/package/aix.rb)4
-rw-r--r--lib/chef/providers.rb2
-rw-r--r--lib/chef/resource/bff_package.rb4
-rw-r--r--lib/chef/version.rb2
-rw-r--r--spec/unit/provider/package/bff_spec.rb (renamed from spec/unit/provider/package/aix_spec.rb)8
-rw-r--r--spec/unit/provider_resolver_spec.rb6
10 files changed, 24 insertions, 23 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8bd6788819..16d0879972 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,15 +1,16 @@
<!-- usage documentation: http://expeditor-docs.es.chef.io/configuration/changelog/ -->
-<!-- latest_release 14.0.120 -->
-## [v14.0.120](https://github.com/chef/chef/tree/v14.0.120) (2018-03-07)
+<!-- latest_release 14.0.121 -->
+## [v14.0.121](https://github.com/chef/chef/tree/v14.0.121) (2018-03-07)
#### Merged Pull Requests
-- Convert more set_or_returns to proper properties [#6950](https://github.com/chef/chef/pull/6950) ([tas50](https://github.com/tas50))
+- Rename bff provider to match its resource [#6956](https://github.com/chef/chef/pull/6956) ([tas50](https://github.com/tas50))
<!-- latest_release -->
<!-- release_rollup since=13.7.16 -->
### Changes since 13.7.16 release
#### Merged Pull Requests
+- Rename bff provider to match its resource [#6956](https://github.com/chef/chef/pull/6956) ([tas50](https://github.com/tas50)) <!-- 14.0.121 -->
- Convert more set_or_returns to proper properties [#6950](https://github.com/chef/chef/pull/6950) ([tas50](https://github.com/tas50)) <!-- 14.0.120 -->
- Remove explicit setting of @provider and depend on ProviderResolver [#6958](https://github.com/chef/chef/pull/6958) ([jasonwbarnett](https://github.com/jasonwbarnett)) <!-- 14.0.119 -->
- remove deprecated property namespace collisions [#6952](https://github.com/chef/chef/pull/6952) ([lamont-granquist](https://github.com/lamont-granquist)) <!-- 14.0.118 -->
diff --git a/Gemfile.lock b/Gemfile.lock
index 882d28d5bf..7c2bf52d5b 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -27,10 +27,10 @@ GIT
PATH
remote: .
specs:
- chef (14.0.120)
+ chef (14.0.121)
addressable
bundler (>= 1.10)
- chef-config (= 14.0.120)
+ chef-config (= 14.0.121)
chef-zero (>= 13.0)
diff-lcs (~> 1.2, >= 1.2.4)
erubis (~> 2.7)
@@ -57,10 +57,10 @@ PATH
specinfra (~> 2.10)
syslog-logger (~> 1.6)
uuidtools (~> 2.1.5)
- chef (14.0.120-universal-mingw32)
+ chef (14.0.121-universal-mingw32)
addressable
bundler (>= 1.10)
- chef-config (= 14.0.120)
+ chef-config (= 14.0.121)
chef-zero (>= 13.0)
diff-lcs (~> 1.2, >= 1.2.4)
erubis (~> 2.7)
@@ -102,7 +102,7 @@ PATH
PATH
remote: chef-config
specs:
- chef-config (14.0.120)
+ chef-config (14.0.121)
addressable
fuzzyurl
mixlib-config (~> 2.0)
diff --git a/VERSION b/VERSION
index 40e3c93203..71ca91d42e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-14.0.120 \ No newline at end of file
+14.0.121 \ No newline at end of file
diff --git a/chef-config/lib/chef-config/version.rb b/chef-config/lib/chef-config/version.rb
index ae829e06f9..94609a93c7 100644
--- a/chef-config/lib/chef-config/version.rb
+++ b/chef-config/lib/chef-config/version.rb
@@ -21,7 +21,7 @@
module ChefConfig
CHEFCONFIG_ROOT = File.expand_path("../..", __FILE__)
- VERSION = "14.0.120"
+ VERSION = "14.0.121"
end
#
diff --git a/lib/chef/provider/package/aix.rb b/lib/chef/provider/package/bff.rb
index b013b3d8ce..9a2ccd25b4 100644
--- a/lib/chef/provider/package/aix.rb
+++ b/lib/chef/provider/package/bff.rb
@@ -23,10 +23,10 @@ require "chef/mixin/get_source_from_package"
class Chef
class Provider
class Package
- class Aix < Chef::Provider::Package
+ class Bff < Chef::Provider::Package
provides :package, os: "aix"
- provides :bff_package, os: "aix"
+ provides :bff_package
include Chef::Mixin::GetSourceFromPackage
diff --git a/lib/chef/providers.rb b/lib/chef/providers.rb
index 8b07e1b405..1b9aa84697 100644
--- a/lib/chef/providers.rb
+++ b/lib/chef/providers.rb
@@ -81,7 +81,7 @@ require "chef/provider/package/yum"
require "chef/provider/package/zypper"
require "chef/provider/package/solaris"
require "chef/provider/package/smartos"
-require "chef/provider/package/aix"
+require "chef/provider/package/bff"
require "chef/provider/package/cab"
require "chef/provider/package/powershell"
require "chef/provider/package/msu"
diff --git a/lib/chef/resource/bff_package.rb b/lib/chef/resource/bff_package.rb
index f67d6d253e..62838cfd60 100644
--- a/lib/chef/resource/bff_package.rb
+++ b/lib/chef/resource/bff_package.rb
@@ -17,11 +17,13 @@
#
require "chef/resource/package"
-require "chef/provider/package/aix"
class Chef
class Resource
class BffPackage < Chef::Resource::Package
+ resource_name :bff_package
+ provides :bff_package
+
description "Use the bff_package resource to manage packages for the AIX platform"\
" using the installp utility. When a package is installed from a local"\
" file, it must be added to the node using the remote_file or cookbook_file"\
diff --git a/lib/chef/version.rb b/lib/chef/version.rb
index d14fffe705..c7dc5c0b67 100644
--- a/lib/chef/version.rb
+++ b/lib/chef/version.rb
@@ -23,7 +23,7 @@ require "chef/version_string"
class Chef
CHEF_ROOT = File.expand_path("../..", __FILE__)
- VERSION = Chef::VersionString.new("14.0.120")
+ VERSION = Chef::VersionString.new("14.0.121")
end
#
diff --git a/spec/unit/provider/package/aix_spec.rb b/spec/unit/provider/package/bff_spec.rb
index 3c54c6a80c..1018f2d3e9 100644
--- a/spec/unit/provider/package/aix_spec.rb
+++ b/spec/unit/provider/package/bff_spec.rb
@@ -18,7 +18,7 @@
#
require "spec_helper"
-describe Chef::Provider::Package::Aix do
+describe Chef::Provider::Package::Bff do
before(:each) do
@node = Chef::Node.new
@events = Chef::EventDispatch::Dispatcher.new
@@ -27,7 +27,7 @@ describe Chef::Provider::Package::Aix do
@new_resource = Chef::Resource::Package.new("samba.base")
@new_resource.source("/tmp/samba.base")
- @provider = Chef::Provider::Package::Aix.new(@new_resource, @run_context)
+ @provider = Chef::Provider::Package::Bff.new(@new_resource, @run_context)
allow(::File).to receive(:exist?).with(@new_resource.source).and_return(true)
end
@@ -99,7 +99,7 @@ describe Chef::Provider::Package::Aix do
it "should raise an exception if the source is not set but we are installing" do
status = double("Status", :stdout => "", :exitstatus => 1, :format_for_exception => "")
@new_resource = Chef::Resource::Package.new("samba.base")
- @provider = Chef::Provider::Package::Aix.new(@new_resource, @run_context)
+ @provider = Chef::Provider::Package::Bff.new(@new_resource, @run_context)
allow(@provider).to receive(:shell_out).and_return(status)
expect { @provider.run_action(:install) }.to raise_error(Chef::Exceptions::Package)
end
@@ -156,7 +156,7 @@ describe Chef::Provider::Package::Aix do
it "should run installp -aYF -d when the package is a path to install" do
@new_resource = Chef::Resource::Package.new("/tmp/samba.base")
- @provider = Chef::Provider::Package::Aix.new(@new_resource, @run_context)
+ @provider = Chef::Provider::Package::Bff.new(@new_resource, @run_context)
expect(@new_resource.source).to eq("/tmp/samba.base")
expect(@provider).to receive(:shell_out!).with("installp", "-aYF", "-d", "/tmp/samba.base", "/tmp/samba.base", timeout: 900)
@provider.install_package("/tmp/samba.base", "3.3.12.0")
diff --git a/spec/unit/provider_resolver_spec.rb b/spec/unit/provider_resolver_spec.rb
index ac641de43a..6fa05c936a 100644
--- a/spec/unit/provider_resolver_spec.rb
+++ b/spec/unit/provider_resolver_spec.rb
@@ -554,6 +554,7 @@ describe Chef::ProviderResolver do
PROVIDERS =
{
bash: [ Chef::Resource::Bash, Chef::Provider::Script ],
+ bff_package: [ Chef::Resource::BffPackage, Chef::Provider::Package::Bff ],
breakpoint: [ Chef::Resource::Breakpoint, Chef::Resource::Breakpoint.action_class ],
chef_gem: [ Chef::Resource::ChefGem, Chef::Provider::Package::Rubygems ],
cookbook_file: [ Chef::Resource::CookbookFile, Chef::Provider::CookbookFile ],
@@ -592,7 +593,6 @@ describe Chef::ProviderResolver do
# We want to check that these are unsupported:
apt_package: nil,
- bff_package: nil,
dpkg_package: nil,
dsc_script: nil,
ips_package: nil,
@@ -781,13 +781,11 @@ describe Chef::ProviderResolver do
},
"aix" => {
- bff_package: [ Chef::Resource::BffPackage, Chef::Provider::Package::Aix ],
cron: [ Chef::Resource::Cron, Chef::Provider::Cron::Aix ],
group: [ Chef::Resource::Group, Chef::Provider::Group::Aix ],
ifconfig: [ Chef::Resource::Ifconfig, Chef::Provider::Ifconfig::Aix ],
mount: [ Chef::Resource::Mount, Chef::Provider::Mount::Aix ],
- # TODO should be Chef::Resource::BffPackage
- package: [ Chef::Resource::Package, Chef::Provider::Package::Aix ],
+ package: [ Chef::Resource::Package, Chef::Provider::Package::Bff ],
rpm_package: [ Chef::Resource::RpmPackage, Chef::Provider::Package::Rpm ],
user: [ Chef::Resource::User::AixUser, Chef::Provider::User::Aix ],
# service: [ Chef::Resource::AixService, Chef::Provider::Service::Aix ],