summaryrefslogtreecommitdiff
path: root/lib/mixlib
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mixlib')
-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