Sha256: 25a1773df96b980182b02ea50c39579dba2907457c7eaa1a79888848752c202d
Contents?: true
Size: 376 Bytes
Versions: 5
Compression:
Stored size: 376 Bytes
Contents
module Processor def local_execute(shell_cmds) shell_cmds.each do |shell_cmd| $log.writer.debug "executing: #{shell_cmd}" output = %x[ /bin/bash --login -c \"#{shell_cmd}\" ] if $?.exitstatus == 0 $log.writer.debug output else $log.writer.error output exit 1 end end end module_function :local_execute end
Version data entries
5 entries across 5 versions & 1 rubygems