Class: ZAWS::EC2

Inherits:
Object
  • Object
show all
Defined in:
lib/zaws/services/ec2.rb

Instance Method Summary collapse

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

#computeObject



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

#elasticipObject



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_tableObject



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_groupObject



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

#subnetObject



20
21
22
23
# File 'lib/zaws/services/ec2.rb', line 20

def subnet 
  @_subnet ||= (ZAWS::Services::EC2::Subnet.new(@shellout,@aws,@undofile))
  return @_subnet
end

#vpcObject



14
15
16
17
18
# File 'lib/zaws/services/ec2.rb', line 14

def vpc
  @_vpc ||= (ZAWS::Services::EC2::VPC.new(@shellout,@aws,@undofile))

  return @_vpc
end