Class: EcsDeployCli::DSL::Service::LoadBalancer
- Inherits:
-
Object
- Object
- EcsDeployCli::DSL::Service::LoadBalancer
- Includes:
- AutoOptions
- Defined in:
- lib/ecs_deploy_cli/dsl/service.rb
Instance Method Summary collapse
- #as_definition ⇒ Object
-
#initialize(name, config) ⇒ LoadBalancer
constructor
A new instance of LoadBalancer.
- #target_group_arn(value) ⇒ Object
Methods included from AutoOptions
Constructor Details
#initialize(name, config) ⇒ LoadBalancer
Returns a new instance of LoadBalancer.
43 44 45 46 |
# File 'lib/ecs_deploy_cli/dsl/service.rb', line 43 def initialize(name, config) [:load_balancer_name] = name @config = config end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class EcsDeployCli::DSL::AutoOptions
Instance Method Details
#as_definition ⇒ Object
53 54 55 |
# File 'lib/ecs_deploy_cli/dsl/service.rb', line 53 def as_definition end |
#target_group_arn(value) ⇒ Object
48 49 50 51 |
# File 'lib/ecs_deploy_cli/dsl/service.rb', line 48 def target_group_arn(value) [:target_group_arn] = "arn:aws:elasticloadbalancing:#{@config[:aws_region]}:#{@config[:aws_profile_id]}:targetgroup/#{value}" .delete(:load_balancer_name) end |