Class: Piculet::DSL::EC2
- Inherits:
-
Object
- Object
- Piculet::DSL::EC2
- Defined in:
- lib/piculet/dsl/ec2.rb,
lib/piculet/dsl/permission.rb,
lib/piculet/dsl/permissions.rb,
lib/piculet/dsl/security-group.rb
Defined Under Namespace
Classes: SecurityGroup
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(vpc, &block) ⇒ EC2
constructor
A new instance of EC2.
Constructor Details
#initialize(vpc, &block) ⇒ EC2
Returns a new instance of EC2.
9 10 11 12 13 14 15 16 17 |
# File 'lib/piculet/dsl/ec2.rb', line 9 def initialize(vpc, &block) @names = Set.new @result = OpenStruct.new({ :vpc => vpc, :security_groups => [], }) instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
7 8 9 |
# File 'lib/piculet/dsl/ec2.rb', line 7 def result @result end |