summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-03-06 19:23:47 -0800
committerTim Smith <tsmith@chef.io>2018-03-06 19:23:47 -0800
commitca6b0f702d8eb21a8a06ce16662f46c8737b3ad7 (patch)
treec44a2df97734509aa534a598ff506ff0b5667c64
parent4994aa6b92c20fa59a872365755b54dad6054e33 (diff)
downloadchef-ca6b0f702d8eb21a8a06ce16662f46c8737b3ad7.tar.gz
Rename bff provider to match its resource
We have the bff resource and the aix provider. Rename the provider to to bff as well. Signed-off-by: Tim Smith <tsmith@chef.io>
-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
3 files changed, 6 insertions, 4 deletions
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"\