Sha256: 8096193ed32e32f427dc46f2b58c9736dec179abc2a35615778702c928bfc8d0

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

module Processor
  def local_execute(shell_cmds)
    outputs = []
    shell_cmds.each do |shell_cmd|
      outputs.push shell_cmd
      $log.writer.debug "executing: #{shell_cmd}"
      output = ` /bin/bash --login -c \"#{shell_cmd}\" `
      outputs.push output
      if $CHILD_STATUS.exitstatus == 0
        $log.writer.debug output
      else
        $log.writer.error output
        exit 1
      end
    end
    outputs
  end
  module_function :local_execute
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
depengine-3.0.23 lib/depengine/processor/local_execute.rb
depengine-3.0.22 lib/depengine/processor/local_execute.rb
depengine-3.0.21 lib/depengine/processor/local_execute.rb