Class: EY::Serverside::CLI::App
- Inherits:
-
Thor
- Object
- Thor
- EY::Serverside::CLI::App
show all
- 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
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
56
57
58
59
60
61
62
63
|
# File 'lib/engineyard-serverside/cli/app.rb', line 56
def deploy(default_task=:deploy)
Workflows.perform(default_task, options)
end
|
#disable_maintenance ⇒ Object
88
89
90
|
# File 'lib/engineyard-serverside/cli/app.rb', line 88
def disable_maintenance
Workflows.perform(:disable_maintenance, options)
end
|
#enable_maintenance ⇒ Object
70
71
72
|
# File 'lib/engineyard-serverside/cli/app.rb', line 70
def enable_maintenance
Workflows.perform(:enable_maintenance, options)
end
|
#hook(hook_name) ⇒ Object
106
107
108
109
110
111
|
# File 'lib/engineyard-serverside/cli/app.rb', line 106
def hook(hook_name)
Workflows.perform(
:hook,
options.merge(:hook_name => hook_name)
)
end
|
#integrate ⇒ Object
122
123
124
|
# File 'lib/engineyard-serverside/cli/app.rb', line 122
def integrate
Workflows.perform(:integrate, options)
end
|
#maintenance_status ⇒ Object
79
80
81
|
# File 'lib/engineyard-serverside/cli/app.rb', line 79
def maintenance_status
Workflows.perform(:maintenance_status, options)
end
|
#restart ⇒ Object
131
132
133
|
# File 'lib/engineyard-serverside/cli/app.rb', line 131
def restart
Workflows.perform(:restart, options)
end
|
#version ⇒ Object
136
137
138
|
# File 'lib/engineyard-serverside/cli/app.rb', line 136
def version
puts EY::Serverside::VERSION
end
|