diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-11-15 15:09:41 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-12-06 13:08:26 -0800 |
commit | 7a3ca23fd977ca4f894cba54f76d64a77562f012 (patch) | |
tree | 8cef2b7321c8e7fa512b4316f0a2ac1a6673de50 /lib/chef/scan_access_control.rb | |
parent | de36073edd22dbf3dbc5c42fde262ae9b81dd783 (diff) | |
download | chef-7a3ca23fd977ca4f894cba54f76d64a77562f012.tar.gz |
fix Style/VariableInterpolation
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/scan_access_control.rb')
-rw-r--r-- | lib/chef/scan_access_control.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/scan_access_control.rb b/lib/chef/scan_access_control.rb index f55a106e6d..0e6df30303 100644 --- a/lib/chef/scan_access_control.rb +++ b/lib/chef/scan_access_control.rb @@ -70,7 +70,7 @@ class Chef when Integer stat.uid else - Chef::Log.error("The `owner` parameter of the #@new_resource resource is set to an invalid value (#{new_resource.owner.inspect})") + Chef::Log.error("The `owner` parameter of the #{@new_resource} resource is set to an invalid value (#{new_resource.owner.inspect})") raise ArgumentError, "cannot resolve #{new_resource.owner.inspect} to uid, owner must be a string or integer" end end @@ -97,7 +97,7 @@ class Chef when Integer stat.gid else - Chef::Log.error("The `group` parameter of the #@new_resource resource is set to an invalid value (#{new_resource.owner.inspect})") + Chef::Log.error("The `group` parameter of the #{@new_resource} resource is set to an invalid value (#{new_resource.owner.inspect})") raise ArgumentError, "cannot resolve #{new_resource.group.inspect} to gid, group must be a string or integer" end end @@ -121,8 +121,8 @@ class Chef when String, Integer, nil "0#{(stat.mode & 07777).to_s(8)}" else - Chef::Log.error("The `mode` parameter of the #@new_resource resource is set to an invalid value (#{new_resource.mode.inspect})") - raise ArgumentError, "Invalid value #{new_resource.mode.inspect} for `mode` on resource #@new_resource" + Chef::Log.error("The `mode` parameter of the #{@new_resource} resource is set to an invalid value (#{new_resource.mode.inspect})") + raise ArgumentError, "Invalid value #{new_resource.mode.inspect} for `mode` on resource #{@new_resource}" end end |