Class: ZAWS::EC2

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

Instance Method Summary collapse

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

#computeObject



28
29
30
31
# File 'lib/zaws/ec2.rb', line 28

def compute 
  @_compute ||= (ZAWS::EC2Services::Compute.new(@shellout,@aws))
  return @_compute
end

#elasticipObject



33
34
35
36
# File 'lib/zaws/ec2.rb', line 33

def elasticip 
  @_elasticip ||= (ZAWS::EC2Services::Elasticip.new(@shellout,@aws))
  return @_elasticip
end

#route_tableObject



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_groupObject



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

#subnetObject



13
14
15
16
# File 'lib/zaws/ec2.rb', line 13

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