Module: Aptible::CLI::Subcommands::Restart
- Included in:
- Agent
- Defined in:
- lib/aptible/cli/subcommands/restart.rb
Class Method Summary collapse
Class Method Details
.included(thor) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/aptible/cli/subcommands/restart.rb', line 5 def self.included(thor) thor.class_eval do include Helpers::Operation include Helpers::App desc 'restart', 'Restart all services associated with an app' option :app def restart app = ensure_app() operation = app.create_operation(type: 'restart') puts 'Restarting app...' poll_for_success(operation) end end end |