Class: EY::CLI::Web
Constant Summary
Constants inherited from Thor
Thor::HELP_MAPPINGS, Thor::THOR_RESERVED_WORDS, Thor::VERSION
Instance Attribute Summary
Attributes included from Thor::Base
#args, #options, #parent_options
Instance Method Summary collapse
Methods inherited from Thor
check_unknown_options!, check_unknown_options?, default_task, desc, help, #help, long_desc, map, method_option, method_options, printable_tasks, register, subcommand, subcommands, task_help
Methods included from Thor::Base
included, #initialize, register_klass_file, shell, shell=, subclass_files, subclasses
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 |