Module: Runner
- Included in:
- EY::Serverside::Callbacks::Executor::Executable, EY::Serverside::Slug::Distributor, EY::Serverside::Slug::Enabler, EY::Serverside::Slug::Finalizer, EY::Serverside::Slug::Migrator, EY::Serverside::Slug::Restarter, EY::Serverside::Slug::Source::Updater
- Defined in:
- lib/runner.rb
Instance Method Summary collapse
-
#run(cmd) ⇒ Object
Internal: Run a command.
-
#run_and_output(cmd) ⇒ Object
Internal: Run a command and return the output.
-
#run_and_success?(cmd) ⇒ Boolean
Internal: Run a command and check if it was successful.
- #runner ⇒ Object
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.
31 32 33 |
# File 'lib/runner.rb', line 31 def run_and_success?(cmd) run(cmd).success? end |
#runner ⇒ Object
4 5 6 |
# File 'lib/runner.rb', line 4 def runner EY::Serverside::Spawner end |