Module: Runner

Instance Method Summary collapse

Instance Method Details

#run(cmd) ⇒ Object

Internal: Run a command.

cmd - A string command.

Returns an instance of Spawner.



13
14
15
# File 'lib/runner.rb', line 13

def run(cmd)
  runner.run(cmd, shell, nil)
end

#run_and_output(cmd) ⇒ Object

Internal: Run a command and return the output.

cmd - A string command.

Returns the output of the command.



22
23
24
# File 'lib/runner.rb', line 22

def run_and_output(cmd)
  run(cmd).output
end

#run_and_success?(cmd) ⇒ Boolean

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

cmd - A string command.

Returns success.

Returns:

  • (Boolean)


31
32
33
# File 'lib/runner.rb', line 31

def run_and_success?(cmd)
  run(cmd).success?
end

#runnerObject



4
5
6
# File 'lib/runner.rb', line 4

def runner
  EY::Serverside::Spawner
end