Class: Applb::DSL::EC2
- Inherits:
-
Object
- Object
- Applb::DSL::EC2
- Includes:
- TemplateHelper
- Defined in:
- lib/applb/dsl/ec2.rb,
lib/applb/dsl/rule.rb,
lib/applb/dsl/rules.rb,
lib/applb/dsl/listener.rb,
lib/applb/dsl/listeners.rb,
lib/applb/dsl/attributes.rb,
lib/applb/dsl/target_group.rb,
lib/applb/dsl/load_balancer.rb,
lib/applb/dsl/target_groups.rb
Defined Under Namespace
Classes: LoadBalancer
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, vpc_id, lbs, &block) ⇒ EC2
constructor
A new instance of EC2.
Methods included from TemplateHelper
Constructor Details
#initialize(context, vpc_id, lbs, &block) ⇒ EC2
Returns a new instance of EC2.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/applb/dsl/ec2.rb', line 11 def initialize(context, vpc_id, lbs, &block) @context = context.merge(vpc_id: vpc_id) @result = OpenStruct.new({ vpc_id: vpc_id, load_balancers: lbs, }) @names = lbs.map(&:name) instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
9 10 11 |
# File 'lib/applb/dsl/ec2.rb', line 9 def result @result end |