Class: CfDeployer::DeploymentStrategy::Base
- Inherits:
-
Object
- Object
- CfDeployer::DeploymentStrategy::Base
- Defined in:
- lib/cf_deployer/deployment_strategy/base.rb
Direct Known Subclasses
Constant Summary collapse
- BLUE_GREEN_STRATEGY =
true
Instance Attribute Summary collapse
-
#application_name ⇒ Object
readonly
Returns the value of attribute application_name.
-
#component_name ⇒ Object
readonly
Returns the value of attribute component_name.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#environment_name ⇒ Object
readonly
Returns the value of attribute environment_name.
Instance Method Summary collapse
- #blue_green_strategy? ⇒ Boolean
-
#initialize(application_name, component_name, environment_name, context) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(application_name, component_name, environment_name, context) ⇒ Base
Returns a new instance of Base.
19 20 21 22 23 24 25 |
# File 'lib/cf_deployer/deployment_strategy/base.rb', line 19 def initialize(application_name, component_name, environment_name, context) @application_name = application_name @component_name = component_name @environment_name = environment_name @context = context @auto_scaling_group_drivers = {} end |
Instance Attribute Details
#application_name ⇒ Object (readonly)
Returns the value of attribute application_name.
18 19 20 |
# File 'lib/cf_deployer/deployment_strategy/base.rb', line 18 def application_name @application_name end |
#component_name ⇒ Object (readonly)
Returns the value of attribute component_name.
18 19 20 |
# File 'lib/cf_deployer/deployment_strategy/base.rb', line 18 def component_name @component_name end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
18 19 20 |
# File 'lib/cf_deployer/deployment_strategy/base.rb', line 18 def context @context end |
#environment_name ⇒ Object (readonly)
Returns the value of attribute environment_name.
18 19 20 |
# File 'lib/cf_deployer/deployment_strategy/base.rb', line 18 def environment_name @environment_name end |
Instance Method Details
#blue_green_strategy? ⇒ Boolean
27 28 29 |
# File 'lib/cf_deployer/deployment_strategy/base.rb', line 27 def blue_green_strategy? BLUE_GREEN_STRATEGY end |