Class: PsRestartCommand
- Defined in:
- lib/ukku/ps_restart_command.rb
Instance Method Summary collapse
Methods inherited from Command
Instance Method Details
#execute(args) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/ukku/ps_restart_command.rb', line 2 def execute(args) app_info = load_app_info(args) puts "Restarting processes on #{app_info[:host]} ..." conn = Connection.new(app_info) begin conn.execute("launchapp") rescue Subprocess::NonZeroExit => e end end |