class Fleetctl::Runner::Runner

Attributes

command[R]
exit_code[R]
exit_signal[R]
status[R]
stderr_data[R]
stdout_data[R]

Public Class Methods

new(*command) click to toggle source
# File lib/fleetctl/runner/runner.rb, line 6
def initialize(*command)
  @command = [*command].flatten.compact.join(' ')
end

Public Instance Methods

output() click to toggle source
# File lib/fleetctl/runner/runner.rb, line 14
def output
  @output || run
end
run(*) click to toggle source
# File lib/fleetctl/runner/runner.rb, line 10
def run(*)
  fail NotImplementedError
end