summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-06-25 17:23:38 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-06-25 17:23:38 -0700
commit2941e7e783a5a27af21d88fc072c16d8b0cdf95f (patch)
tree27f38830ef4cb01c51461828ff0e368ba1925a45 /lib
parent51bb7e6f62b5378fb9dd69b0db4d87500437c7f7 (diff)
downloadmixlib-shellout-2941e7e783a5a27af21d88fc072c16d8b0cdf95f.tar.gz
remove hashrocket syntaxlcg/remove-hashrockets
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/mixlib/shellout/unix.rb2
-rw-r--r--lib/mixlib/shellout/windows.rb16
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