Class: CF::Deploy::BlueGreen
- Inherits:
-
Object
- Object
- CF::Deploy::BlueGreen
- Defined in:
- lib/cf/deploy/blue_green.rb
Instance Attribute Summary collapse
-
#cf ⇒ Object
Returns the value of attribute cf.
-
#config ⇒ Object
Returns the value of attribute config.
-
#config_task ⇒ Object
Returns the value of attribute config_task.
-
#env ⇒ Object
Returns the value of attribute env.
Instance Method Summary collapse
-
#initialize(env, config_task) ⇒ BlueGreen
constructor
A new instance of BlueGreen.
Constructor Details
#initialize(env, config_task) ⇒ BlueGreen
Returns a new instance of BlueGreen.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/cf/deploy/blue_green.rb', line 8 def initialize(env, config_task) @env = env @config_task = config_task @config = config_task[:config] @cf = config_task[:commands] define_deployment_task define_flip_task define_stop_idle_task end |
Instance Attribute Details
#cf ⇒ Object
Returns the value of attribute cf.
6 7 8 |
# File 'lib/cf/deploy/blue_green.rb', line 6 def cf @cf end |
#config ⇒ Object
Returns the value of attribute config.
6 7 8 |
# File 'lib/cf/deploy/blue_green.rb', line 6 def config @config end |
#config_task ⇒ Object
Returns the value of attribute config_task.
6 7 8 |
# File 'lib/cf/deploy/blue_green.rb', line 6 def config_task @config_task end |
#env ⇒ Object
Returns the value of attribute env.
6 7 8 |
# File 'lib/cf/deploy/blue_green.rb', line 6 def env @env end |