lib/minke/helpers/shell.rb in minke-1.13.4 vs lib/minke/helpers/shell.rb in minke-1.13.5

- old
+ new

@@ -8,19 +8,18 @@ ## # Executes a shell command and returns the return status def execute command @logger.debug command - require 'open3' - cmd = 'ping www.google.com' Open3.popen3(command) do |stdin, stdout, stderr, wait_thr| while line = stdout.gets @logger.debug line end exit_status = wait_thr.value unless exit_status.success? - abort "FAILED !!! #{cmd}" + @logger.error "Error executing command: #{command}" + abort end end end def execute_and_return command \ No newline at end of file