Class: CfDeployer::DeploymentStrategy::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cf_deployer/deployment_strategy/base.rb

Direct Known Subclasses

BlueGreen, CreateOrUpdate

Constant Summary collapse

BLUE_GREEN_STRATEGY =
true

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (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_nameObject (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

#contextObject (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_nameObject (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

Returns:

  • (Boolean)


27
28
29
# File 'lib/cf_deployer/deployment_strategy/base.rb', line 27

def blue_green_strategy?
  BLUE_GREEN_STRATEGY
end