class Ey::Core::Cli::Web::Restart

Public Instance Methods

handle() click to toggle source
# File lib/ey-core/cli/web/restart.rb, line 23
def handle
  operator, environment = core_operator_and_environment_for(options)

  puts "Restarting application servers in #{environment.name}".green

  request = environment.restart_app_servers
  request.wait_for { |r| r.ready? }

  if request.successful
    puts "Successfully restarted application servers".green
  else
    puts "Restarting application servers has failed".red
    ap request
  end
end