Class: Kelbim::DSL::EC2
- Inherits:
-
Object
- Object
- Kelbim::DSL::EC2
- Includes:
- TemplateHelper
- Defined in:
- lib/kelbim/dsl/ec2.rb,
lib/kelbim/dsl/listener.rb,
lib/kelbim/dsl/listeners.rb,
lib/kelbim/dsl/attributes.rb,
lib/kelbim/dsl/health-check.rb,
lib/kelbim/dsl/load-balancer.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, load_balancers, &block) ⇒ EC2
constructor
A new instance of EC2.
Methods included from TemplateHelper
Constructor Details
#initialize(context, vpc, load_balancers, &block) ⇒ EC2
Returns a new instance of EC2.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/kelbim/dsl/ec2.rb', line 8 def initialize(context, vpc, load_balancers, &block) @error_identifier = "EC2 `#{vpc || :classic}`" @context = context.merge(:vpc => vpc) @result = OpenStruct.new({ :vpc => vpc, :load_balancers => load_balancers, }) @names = load_balancers.map {|i| i.name } instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/kelbim/dsl/ec2.rb', line 6 def result @result end |