Class: Kelbim::DSL::EC2
- Inherits:
-
Object
- Object
- Kelbim::DSL::EC2
- 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(vpc, load_balancers, &block) ⇒ EC2
constructor
A new instance of EC2.
Constructor Details
#initialize(vpc, load_balancers, &block) ⇒ EC2
Returns a new instance of EC2.
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/kelbim/dsl/ec2.rb', line 10 def initialize(vpc, load_balancers, &block) @error_identifier = "EC2 `#{vpc || :classic}`" @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.
8 9 10 |
# File 'lib/kelbim/dsl/ec2.rb', line 8 def result @result end |