Class: CfDeployer::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/cf_deployer/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (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 merged_options
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 merged_options
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 merged_options
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 merged_options
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 merged_options
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 merged_options
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 merged_options
end