Sha256: ff7926e9053b38c2b690e514db8e4fcf598be22c3a9a758f35800db5798a32f5
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
class Ey::Core::Cli::Web::Enable < Ey::Core::Cli::Web title "enable" summary "Remove the maintenance page for this application in the given environment." option :app, short: "a", long: "app", description: "Name or id of the application whose maintenance page will be removed", argument: "app" 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(self.options) application = core_application_for(self.options) puts "Disabling maintenance for #{application.name} on #{environment.name}".green request = environment.maintenance(application, "disable") request.wait_for { |r| r.ready? } if request.successful puts "Successfully disabled maintenance page".green else puts "Disabling maintenance mode was not successful".red ap request end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ey-core-3.1.2 | lib/ey-core/cli/web/enable.rb |
ey-core-3.1.1 | lib/ey-core/cli/web/enable.rb |
ey-core-3.1.0 | lib/ey-core/cli/web/enable.rb |