Class: ZAWS::EC2
- Inherits:
-
Object
- Object
- ZAWS::EC2
- Defined in:
- lib/zaws/services/ec2.rb
Instance Method Summary collapse
- #compute ⇒ Object
- #elasticip ⇒ Object
-
#initialize(shellout, aws, undofile = nil) ⇒ EC2
constructor
A new instance of EC2.
- #route_table ⇒ Object
- #security_group ⇒ Object
- #subnet ⇒ Object
- #vpc ⇒ Object
Constructor Details
#initialize(shellout, aws, undofile = nil) ⇒ EC2
Returns a new instance of EC2.
8 9 10 11 12 |
# File 'lib/zaws/services/ec2.rb', line 8 def initialize(shellout,aws,undofile=nil) @shellout=shellout @aws=aws @undofile=undofile end |
Instance Method Details
#compute ⇒ Object
35 36 37 38 |
# File 'lib/zaws/services/ec2.rb', line 35 def compute @_compute ||= (ZAWS::Services::EC2::Compute.new(@shellout,@aws,@undofile)) return @_compute end |
#elasticip ⇒ Object
40 41 42 43 |
# File 'lib/zaws/services/ec2.rb', line 40 def elasticip @_elasticip ||= (ZAWS::Services::EC2::Elasticip.new(@shellout,@aws,@undofile)) return @_elasticip end |
#route_table ⇒ Object
30 31 32 33 |
# File 'lib/zaws/services/ec2.rb', line 30 def route_table @_route_table ||= (ZAWS::Services::EC2::RouteTable.new(@shellout,@aws,@undofile)) return @_route_table end |
#security_group ⇒ Object
25 26 27 28 |
# File 'lib/zaws/services/ec2.rb', line 25 def security_group @_security_group ||= (ZAWS::Services::EC2::SecurityGroup.new(@shellout,@aws,@undofile)) return @_security_group end |