diff options
-rw-r--r-- | lib/mixlib/shellout/windows.rb | 2 | ||||
-rw-r--r-- | lib/mixlib/shellout/windows/core_ext.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/mixlib/shellout/windows.rb b/lib/mixlib/shellout/windows.rb index 26130d3..09c97c5 100644 --- a/lib/mixlib/shellout/windows.rb +++ b/lib/mixlib/shellout/windows.rb @@ -88,7 +88,7 @@ module Mixlib # # Start the process # - process, profile, token = Process.create(create_process_args) + process, profile, token = Process.create3(create_process_args) logger.debug(format_process(process, app_name, command_line, timeout)) if logger begin # Start pushing data into input diff --git a/lib/mixlib/shellout/windows/core_ext.rb b/lib/mixlib/shellout/windows/core_ext.rb index 83a31ab..621efb9 100644 --- a/lib/mixlib/shellout/windows/core_ext.rb +++ b/lib/mixlib/shellout/windows/core_ext.rb @@ -109,6 +109,10 @@ module Process class << self def create(args) + create3(args).first + end + + def create3(args) unless args.is_a?(Hash) raise TypeError, "hash keyword arguments expected" end |