Class: EY::Serverside::CLI::App
- Extended by:
- Helpers
- Defined in:
- lib/engineyard-serverside/cli/app.rb
Overview
App is the actual Thor-based entry point for the engineyard-serverside CLI application
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
- #deploy(default_task = :deploy) ⇒ Object
- #disable_maintenance ⇒ Object
- #enable_maintenance ⇒ Object
- #hook(hook_name) ⇒ Object
- #integrate ⇒ Object
- #maintenance_status ⇒ Object
- #restart ⇒ Object
Methods included from Helpers
account_app_env_options, config_option, framework_env_option, instances_options, stack_option, verbose_option
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
#deploy(default_task = :deploy) ⇒ Object
55 56 57 58 59 60 61 62 |
# File 'lib/engineyard-serverside/cli/app.rb', line 55 def deploy(default_task=:deploy) # By default, we'll want to perform the :deploy workflow, but this # method is also the entry point for the rollback workflow. So, # we'll just let the workflow system figure out what to do based on # the task passed in from the command line. Workflows.perform(default_task, ) end |
#disable_maintenance ⇒ Object
87 88 89 |
# File 'lib/engineyard-serverside/cli/app.rb', line 87 def disable_maintenance Workflows.perform(:disable_maintenance, ) end |
#enable_maintenance ⇒ Object
69 70 71 |
# File 'lib/engineyard-serverside/cli/app.rb', line 69 def enable_maintenance Workflows.perform(:enable_maintenance, ) end |
#hook(hook_name) ⇒ Object
105 106 107 108 109 110 |
# File 'lib/engineyard-serverside/cli/app.rb', line 105 def hook(hook_name) Workflows.perform( :hook, .merge(:hook_name => hook_name) ) end |
#integrate ⇒ Object
121 122 123 |
# File 'lib/engineyard-serverside/cli/app.rb', line 121 def integrate Workflows.perform(:integrate, ) end |