Sha256: 2a572c776a4b648422a7449ca92d0bc06d70d8b29307a398caa6fd21f584cfbe
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
require 'ey-core/cli/subcommand' module Ey module Core module Cli module Web class Restart < Ey::Core::Cli::Subcommand title "restart" summary "Restart all application servers in an environment" option :environment, short: "e", long: "environment", description: "Name or id of the environment to deploy to.", argument: "environment" option :account, short: "c", long: "account", description: "Name or id of the account that the environment resides in.", argument: "account" 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 end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ey-core-3.6.6 | lib/ey-core/cli/web/restart.rb |
ey-core-3.4.5 | lib/ey-core/cli/web/restart.rb |
ey-core-3.6.5 | lib/ey-core/cli/web/restart.rb |