module Runner

Public Instance Methods

run(cmd) click to toggle source

Internal: Run a command.

cmd - A string command.

Returns an instance of Spawner.

# File lib/runner.rb, line 13
def run(cmd)
  runner.run(cmd, shell, nil)
end
run_and_output(cmd) click to toggle source

Internal: Run a command and return the output.

cmd - A string command.

Returns the output of the command.

# File lib/runner.rb, line 22
def run_and_output(cmd)
  run(cmd).output
end
run_and_success?(cmd) click to toggle source

Internal: Run a command and check if it was successful.

cmd - A string command.

Returns success.

# File lib/runner.rb, line 31
def run_and_success?(cmd)
  run(cmd).success?
end
runner() click to toggle source
# File lib/runner.rb, line 4
def runner
  EY::Serverside::Spawner
end