diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-06-26 13:00:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-26 13:00:31 -0700 |
commit | 274f04da4fcf70ff47251926de407de8120db1c3 (patch) | |
tree | 27f38830ef4cb01c51461828ff0e368ba1925a45 /lib | |
parent | 51bb7e6f62b5378fb9dd69b0db4d87500437c7f7 (diff) | |
parent | 2941e7e783a5a27af21d88fc072c16d8b0cdf95f (diff) | |
download | mixlib-shellout-274f04da4fcf70ff47251926de407de8120db1c3.tar.gz |
Merge pull request #159 from chef/lcg/remove-hashrockets
remove hashrocket syntax
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mixlib/shellout/unix.rb | 2 | ||||
-rw-r--r-- | lib/mixlib/shellout/windows.rb | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/mixlib/shellout/unix.rb b/lib/mixlib/shellout/unix.rb index 881d54a..321d2fd 100644 --- a/lib/mixlib/shellout/unix.rb +++ b/lib/mixlib/shellout/unix.rb @@ -337,7 +337,7 @@ module Mixlib set_cwd begin - command.kind_of?(Array) ? exec(*command, :close_others => true) : exec(command, :close_others => true) + command.kind_of?(Array) ? exec(*command, close_others: true) : exec(command, close_others: true) raise "forty-two" # Should never get here rescue Exception => e diff --git a/lib/mixlib/shellout/windows.rb b/lib/mixlib/shellout/windows.rb index 5116d5f..da49d4a 100644 --- a/lib/mixlib/shellout/windows.rb +++ b/lib/mixlib/shellout/windows.rb @@ -68,15 +68,15 @@ module Mixlib # app_name, command_line = command_to_run(command) create_process_args = { - :app_name => app_name, - :command_line => command_line, - :startup_info => { - :stdout => stdout_write, - :stderr => stderr_write, - :stdin => stdin_read, + app_name: app_name, + command_line: command_line, + startup_info: { + stdout: stdout_write, + stderr: stderr_write, + stdin: stdin_read, }, - :environment => inherit_environment.map { |k, v| "#{k}=#{v}" }, - :close_handles => false, + environment: inherit_environment.map { |k, v| "#{k}=#{v}" }, + close_handles: false, } create_process_args[:cwd] = cwd if cwd # default to local account database if domain is not specified |