Class: Fleetctl::Runner::Shell
- Defined in:
- lib/fleetctl/runner/shell.rb
Instance Attribute Summary
Attributes inherited from Runner
#command, #exit_code, #exit_signal, #status, #stderr_data, #stdout_data
Instance Method Summary collapse
Methods inherited from Runner
Constructor Details
This class inherits a constructor from Fleetctl::Runner::Runner
Instance Method Details
#run ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/fleetctl/runner/shell.rb', line 4 def run(*) return @output if @output Fleetctl.logger.info "#{self.class.name} RUNNING: #{command}" @stdout_data = `#{command}` @status = $? @exit_signal = @status.termsig @exit_code = @status.exitstatus Fleetctl.logger.info "EXIT CODE!: #{@exit_code.inspect}" Fleetctl.logger.info "STDOUT: #{@output.inspect}" @output = @stdout_data end |