summaryrefslogtreecommitdiff
path: root/lib/chef/mixin/shell_out.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-19 13:27:40 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-23 10:44:58 -0800
commit5c6ef532630f3d08325fd0e1635d2b6dd6057a31 (patch)
tree34ebb62d6533770df52378917a7a3f30b2f27c79 /lib/chef/mixin/shell_out.rb
parent2603e2153d6ab50179d2278025a51579edb9033f (diff)
downloadchef-5c6ef532630f3d08325fd0e1635d2b6dd6057a31.tar.gz
fix Lint/UnderscorePrefixedVariableName
Diffstat (limited to 'lib/chef/mixin/shell_out.rb')
-rw-r--r--lib/chef/mixin/shell_out.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/mixin/shell_out.rb b/lib/chef/mixin/shell_out.rb
index d3c14fa408..529023056d 100644
--- a/lib/chef/mixin/shell_out.rb
+++ b/lib/chef/mixin/shell_out.rb
@@ -76,17 +76,17 @@ class Chef
def run_command_compatible_options(command_args)
return command_args unless command_args.last.is_a?(Hash)
- _command_args = command_args.dup
- _options = _command_args.last
+ my_command_args = command_args.dup
+ my_options = my_command_args.last
DEPRECATED_OPTIONS.each do |old_option, new_option|
# Edge case: someone specifies :command_log_level and 'command_log_level' in the option hash
- next unless value = _options.delete(old_option) || _options.delete(old_option.to_s)
+ next unless value = my_options.delete(old_option) || my_options.delete(old_option.to_s)
deprecate_option old_option, new_option
- _options[new_option] = value
+ my_options[new_option] = value
end
- return _command_args
+ return my_command_args
end
private