summaryrefslogtreecommitdiff
path: root/lib/chef/provider/package
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-11-15 13:10:04 -0800
committerTim Smith <tsmith@chef.io>2018-11-15 13:10:04 -0800
commitb5da9b99fc53641cef96fbe0b8cce304efacc9db (patch)
tree51dd7ac7532df29ceb91dca0627b03f1017d04df /lib/chef/provider/package
parent5991cd84731a5c22e4ad411c38334b506d07ab9a (diff)
downloadchef-b5da9b99fc53641cef96fbe0b8cce304efacc9db.tar.gz
Replace several uses of attribute with property in resourcesattribute_is_property
We were still calling things attributes when they're actually properties. This fixes some documentation and error messages. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/provider/package')
-rw-r--r--lib/chef/provider/package/apt.rb2
-rw-r--r--lib/chef/provider/package/chocolatey.rb2
-rw-r--r--lib/chef/provider/package/openbsd.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/provider/package/apt.rb b/lib/chef/provider/package/apt.rb
index f245e481a3..bfb24e502d 100644
--- a/lib/chef/provider/package/apt.rb
+++ b/lib/chef/provider/package/apt.rb
@@ -44,7 +44,7 @@ class Chef
requirements.assert(:all_actions) do |a|
a.assertion { !new_resource.source }
- a.failure_message(Chef::Exceptions::Package, "apt package provider cannot handle source attribute. Use dpkg provider instead")
+ a.failure_message(Chef::Exceptions::Package, "apt package provider cannot handle source property. Use dpkg provider instead")
end
end
diff --git a/lib/chef/provider/package/chocolatey.rb b/lib/chef/provider/package/chocolatey.rb
index eb27b23408..4c35d13a07 100644
--- a/lib/chef/provider/package/chocolatey.rb
+++ b/lib/chef/provider/package/chocolatey.rb
@@ -54,7 +54,7 @@ EOS
# The check that Chocolatey is installed is in #choco_exe.
- # Chocolatey source attribute points to an alternate feed
+ # Chocolatey source property points to an alternate feed
# and not a package specific alternate source like other providers
# so we want to assert candidates exist for the alternate source
requirements.assert(:upgrade, :install) do |a|
diff --git a/lib/chef/provider/package/openbsd.rb b/lib/chef/provider/package/openbsd.rb
index 3408aef944..0332423e7c 100644
--- a/lib/chef/provider/package/openbsd.rb
+++ b/lib/chef/provider/package/openbsd.rb
@@ -53,7 +53,7 @@ class Chef
# Below are incomplete/missing features for this package provider
requirements.assert(:all_actions) do |a|
a.assertion { !new_resource.source }
- a.failure_message(Chef::Exceptions::Package, "The openbsd package provider does not support the source attribute")
+ a.failure_message(Chef::Exceptions::Package, "The openbsd package provider does not support the source property")
end
requirements.assert(:all_actions) do |a|
a.assertion do