Sha256: 228f7b90102c7882feca6dc177f9b0b3f9b256c791e1ceffa2fd0c8026635a32
Contents?: true
Size: 592 Bytes
Versions: 3
Compression:
Stored size: 592 Bytes
Contents
require 'buff/shell_out' module Polytrix module Runners class BuffShellOutExecutor def execute(command, opts) cwd = opts.delete(:cwd) || Dir.pwd execution_result = nil Dir.chdir(cwd) do shell = Buff::ShellOut.shell_out(command) # Buff doesn't have a live_stream like Mixlib puts shell.stdout unless Polytrix.configuration.suppress_output execution_result = ExecutionResult.new exitstatus: shell.exitstatus, stdout: shell.stdout, stderr: shell.stderr end execution_result end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polytrix-0.1.2 | lib/polytrix/runners/buff_shellout_executor.rb |
polytrix-0.1.1 | lib/polytrix/runners/buff_shellout_executor.rb |
polytrix-0.1.0 | lib/polytrix/runners/buff_shellout_executor.rb |