Class: ZAWS::AWSCLI::Commands::EC2

Inherits:
Object
  • Object
show all
Defined in:
lib/zaws/external/awscli/commands/ec2.rb,
lib/zaws/external/awscli/commands/route53.rb,
lib/zaws/external/awscli/commands/ec2/create_vpc.rb,
lib/zaws/external/awscli/commands/ec2/describe_vpcs.rb,
lib/zaws/external/awscli/commands/ec2/run_instances.rb,
lib/zaws/external/awscli/commands/ec2/stop_instances.rb,
lib/zaws/external/awscli/commands/ec2/describe_vpc_peering_connections.rb

Defined Under Namespace

Classes: CreateVPC, DescribeVPCs, DescribeVpcPeeringConnections, RunInstances, StopInstances

Instance Method Summary collapse

Constructor Details

#initialize(shellout, aws) ⇒ EC2

Returns a new instance of EC2.



5
6
7
8
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 5

def initialize(shellout,aws)
  @shellout=shellout
  @aws=aws
end

Instance Method Details

#createSubnetObject



10
11
12
13
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 10

def createSubnet
  @_createSubnet ||= (ZAWS::External::AWSCLI::Commands::EC2::CreateSubnet.new(@shellout,@aws))
  return @_createSubnet
end

#createTagsObject



65
66
67
68
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 65

def createTags 
  @_createTags ||= (ZAWS::External::AWSCLI::Commands::EC2::CreateTags.new(@shellout,@aws))
  return @_createTags
end

#createVPCObject



45
46
47
48
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 45

def createVPC
  @_createVPC ||= (ZAWS::AWSCLI::Commands::EC2::CreateVPC.new(@shellout,@aws))
  return @_createVPC
end

#deleteSecurityGroupObject



30
31
32
33
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 30

def deleteSecurityGroup
  @_deleteSecurityGroup ||= (ZAWS::External::AWSCLI::Commands::EC2::DeleteSecurityGroup.new(@shellout,@aws))
  return @_deleteSecurityGroup
end

#deleteSubnetObject



25
26
27
28
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 25

def deleteSubnet
  @_deleteSubnet ||= (ZAWS::External::AWSCLI::Commands::EC2::DeleteSubnet.new(@shellout,@aws))
  return @_deleteSubnet
end

#describeInstancesObject



50
51
52
53
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 50

def describeInstances 
  @_describeInstances ||= (ZAWS::External::AWSCLI::Commands::EC2::DescribeInstances.new(@shellout,@aws))
  return @_describeInstances
end

#describeSecurityGroupsObject



20
21
22
23
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 20

def describeSecurityGroups
  @_describeSecurityGroups ||= (ZAWS::External::AWSCLI::Commands::EC2::DescribeSecurityGroups.new(@shellout,@aws))
  return @_describeSecurityGroups
end

#describeSubnetsObject



15
16
17
18
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 15

def describeSubnets
  @_describeSubnets ||= (ZAWS::External::AWSCLI::Commands::EC2::DescribeSubnets.new(@shellout,@aws))
  return @_describeSubnets
end

#describeVpcPeeringConnectionsObject



40
41
42
43
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 40

def describeVpcPeeringConnections
  @_describeVpcPeeringConnections ||= (ZAWS::AWSCLI::Commands::EC2::DescribeVpcPeeringConnections.new(@shellout,@aws))
  return @_describeVpcPeeringConnections
end

#describeVPCsObject



35
36
37
38
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 35

def describeVPCs
  @_describeVPCs ||= (ZAWS::AWSCLI::Commands::EC2::DescribeVPCs.new(@shellout,@aws))
  return @_describeVPCs
end

#listHostedZonesObject



10
11
12
13
# File 'lib/zaws/external/awscli/commands/route53.rb', line 10

def listHostedZones
  @_listHostedZones ||= (ZAWS::External::AWSCLI::Commands::Route53::ListdHostedZones.new(@shellout, @aws))
  return @_listHostedZones
end

#runInstancesObject



55
56
57
58
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 55

def runInstances 
  @_runInstances ||= (ZAWS::AWSCLI::Commands::EC2::RunInstances.new(@shellout,@aws))
  return @_runInstances
end

#stopInstancesObject



60
61
62
63
# File 'lib/zaws/external/awscli/commands/ec2.rb', line 60

def stopInstances 
  @_stopInstances ||= (ZAWS::AWSCLI::Commands::EC2::StopInstances.new(@shellout,@aws))
  return @_stopInstances
end