Class: EY::CLI::Web
Instance Method Summary collapse
Instance Method Details
#disable ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/engineyard/cli/web.rb', line 39 def disable app = fetch_app([:app]) environment = fetch_environment([:environment], app) loudly_check_eydeploy(environment) EY.ui.info "Putting up maintenance page for '#{app.name}' in '#{environment.name}'" environment.put_up_maintenance_page(app, [:verbose]) end |
#enable ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/engineyard/cli/web.rb', line 12 def enable app = fetch_app([:app]) environment = fetch_environment([:environment], app) loudly_check_eydeploy(environment) EY.ui.info "Taking down maintenance page for '#{app.name}' in '#{environment.name}'" environment.take_down_maintenance_page(app, [:verbose]) end |