summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-10 09:35:36 -0700
committerTim Smith <tsmith@chef.io>2018-07-10 09:35:36 -0700
commit97cfef7bdf6448b342deec6825f945d6cfb55e7d (patch)
treeee7507f6fb0d3911f4a35e472b3636541a233901 /lib
parent4ab5fbadd8da5c5d66ecc37fe3c211dc1023d4d0 (diff)
downloadchef-97cfef7bdf6448b342deec6825f945d6cfb55e7d.tar.gz
Attribute -> Property in additional places
Specs and comments, but we should get it right in those places as well Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/guard_interpreter/resource_guard_interpreter.rb2
-rw-r--r--lib/chef/provider/windows_task.rb2
-rw-r--r--lib/chef/resource/script.rb2
-rw-r--r--lib/chef/resource/service.rb2
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/guard_interpreter/resource_guard_interpreter.rb b/lib/chef/guard_interpreter/resource_guard_interpreter.rb
index b1d497181b..79134d3dfb 100644
--- a/lib/chef/guard_interpreter/resource_guard_interpreter.rb
+++ b/lib/chef/guard_interpreter/resource_guard_interpreter.rb
@@ -36,7 +36,7 @@ class Chef
# Only execute and script resources and use guard attributes.
# The command to be executed on them are passed via different attributes.
# Script resources use code attribute and execute resources use
- # command attribute. Moreover script resources are also execute
+ # command property. Moreover script resources are also execute
# resources. Here we make sure @command is assigned to the right
# attribute by checking the type of the resources.
# We need to make sure we check for Script first because any resource
diff --git a/lib/chef/provider/windows_task.rb b/lib/chef/provider/windows_task.rb
index f10e4adb70..4fb4817020 100644
--- a/lib/chef/provider/windows_task.rb
+++ b/lib/chef/provider/windows_task.rb
@@ -563,7 +563,7 @@ class Chef
new_resource.password.nil? ? TaskScheduler::TASK_LOGON_SERVICE_ACCOUNT : TaskScheduler::TASK_LOGON_PASSWORD
end
- # This method checks if task and command attributes exist since those two are mandatory attributes to create a schedules task.
+ # This method checks if task and command properties exist since those two are mandatory properties to create a schedules task.
def basic_validation
validate = []
validate << "Command" if new_resource.command.nil? || new_resource.command.empty?
diff --git a/lib/chef/resource/script.rb b/lib/chef/resource/script.rb
index 35d73a61dc..ac3af619e5 100644
--- a/lib/chef/resource/script.rb
+++ b/lib/chef/resource/script.rb
@@ -40,7 +40,7 @@ class Chef
# FIXME: remove this and use an execute sub-resource instead of inheriting from Execute
def command(arg = nil)
unless arg.nil?
- raise Chef::Exceptions::Script, "Do not use the command attribute on a #{resource_name} resource, use the 'code' property instead."
+ raise Chef::Exceptions::Script, "Do not use the command property on a #{resource_name} resource, use the 'code' property instead."
end
super
end
diff --git a/lib/chef/resource/service.rb b/lib/chef/resource/service.rb
index fe13c433cb..c5197d5f06 100644
--- a/lib/chef/resource/service.rb
+++ b/lib/chef/resource/service.rb
@@ -123,7 +123,7 @@ class Chef
# distributions this is '/etc/init.d/SERVICE_NAME' by default. In
# non-standard configurations setting this value will save having to
# specify overrides for the start_command, stop_command and
- # restart_command attributes.
+ # restart_command properties.
def init_command(arg = nil)
set_or_return(
:init_command,