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