Class: EY::CLI::Web

Inherits:
Thor show all
Defined in:
lib/engineyard/cli/web.rb

Instance Method Summary collapse

Instance Method Details

#disableObject



41
42
43
44
45
# File 'lib/engineyard/cli/web.rb', line 41

def disable
  app, environment = fetch_app_and_environment(options[:app], options[:environment], options[:account])
  EY.ui.info "Putting up maintenance page for '#{app.name}' in '#{environment.name}'"
  environment.put_up_maintenance_page(app, options[:verbose])
end

#enableObject



14
15
16
17
18
# File 'lib/engineyard/cli/web.rb', line 14

def enable
  app, environment = fetch_app_and_environment(options[:app], options[:environment], options[:account])
  EY.ui.info "Taking down maintenance page for '#{app.name}' in '#{environment.name}'"
  environment.take_down_maintenance_page(app, options[:verbose])
end