Class: ZAWS::EC2
- Inherits:
-
Object
- Object
- ZAWS::EC2
- Defined in:
- lib/zaws/ec2.rb
Instance Method Summary collapse
- #compute ⇒ Object
- #elasticip ⇒ Object
-
#initialize(shellout, aws) ⇒ EC2
constructor
A new instance of EC2.
- #route_table ⇒ Object
- #security_group ⇒ Object
- #subnet ⇒ Object
Constructor Details
#initialize(shellout, aws) ⇒ EC2
Returns a new instance of EC2.
8 9 10 11 |
# File 'lib/zaws/ec2.rb', line 8 def initialize(shellout,aws) @shellout=shellout @aws=aws end |
Instance Method Details
#compute ⇒ Object
28 29 30 31 |
# File 'lib/zaws/ec2.rb', line 28 def compute @_compute ||= (ZAWS::EC2Services::Compute.new(@shellout,@aws)) return @_compute end |
#elasticip ⇒ Object
33 34 35 36 |
# File 'lib/zaws/ec2.rb', line 33 def elasticip @_elasticip ||= (ZAWS::EC2Services::Elasticip.new(@shellout,@aws)) return @_elasticip end |
#route_table ⇒ Object
23 24 25 26 |
# File 'lib/zaws/ec2.rb', line 23 def route_table @_route_table ||= (ZAWS::EC2Services::RouteTable.new(@shellout,@aws)) return @_route_table end |
#security_group ⇒ Object
18 19 20 21 |
# File 'lib/zaws/ec2.rb', line 18 def security_group @_security_group ||= (ZAWS::EC2Services::SecurityGroup.new(@shellout,@aws)) return @_security_group end |
#subnet ⇒ Object
13 14 15 16 |
# File 'lib/zaws/ec2.rb', line 13 def subnet @_subnet ||= (ZAWS::EC2Services::Subnet.new(@shellout,@aws)) return @_subnet end |