Class: CfDeployer::CLI
- Inherits:
-
Thor
- Object
- Thor
- CfDeployer::CLI
- Defined in:
- lib/cf_deployer/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
- #config(environment) ⇒ Object
- #deploy(environment, component = nil) ⇒ Object
- #destroy(environment, component = nil) ⇒ Object
- #json(environment, component = nil) ⇒ Object
- #kill_inactive(environment, component) ⇒ Object
- #status(environment, component = nil) ⇒ Object
- #switch(environment, component) ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
5 6 7 |
# File 'lib/cf_deployer/cli.rb', line 5 def self.exit_on_failure? true end |
Instance Method Details
#config(environment) ⇒ Object
29 30 31 32 |
# File 'lib/cf_deployer/cli.rb', line 29 def config environment prep_for_action :config, environment CfDeployer.config end |
#deploy(environment, component = nil) ⇒ Object
17 18 19 20 |
# File 'lib/cf_deployer/cli.rb', line 17 def deploy environment, component = nil prep_for_action :deploy, environment, component CfDeployer.deploy end |
#destroy(environment, component = nil) ⇒ Object
23 24 25 26 |
# File 'lib/cf_deployer/cli.rb', line 23 def destroy environment, component = nil prep_for_action :destroy, environment, component CfDeployer.destroy end |
#json(environment, component = nil) ⇒ Object
35 36 37 38 |
# File 'lib/cf_deployer/cli.rb', line 35 def json environment, component = nil prep_for_action :json, environment, component CfDeployer.json end |
#kill_inactive(environment, component) ⇒ Object
49 50 51 52 |
# File 'lib/cf_deployer/cli.rb', line 49 def kill_inactive environment, component prep_for_action :kill_inactive, environment, component CfDeployer.kill_inactive end |
#status(environment, component = nil) ⇒ Object
43 44 45 46 |
# File 'lib/cf_deployer/cli.rb', line 43 def status environment, component = nil prep_for_action :status, environment, component CfDeployer.status end |
#switch(environment, component) ⇒ Object
55 56 57 58 |
# File 'lib/cf_deployer/cli.rb', line 55 def switch environment, component prep_for_action :switch, environment, component CfDeployer.switch end |