Class: Terraforming::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/terraforming/cli.rb

Instance Method Summary collapse

Instance Method Details

#albObject



63
64
65
# File 'lib/terraforming/cli.rb', line 63

def alb
  execute(Terraforming::Resource::ALB, options)
end

#allObject



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/terraforming/cli.rb', line 13

def all
  executeAll([
    # Terraforming::Resource::ALB,
    # Terraforming::Resource::AutoScalingGroup,
    Terraforming::Resource::CloudWatchAlarm,
    # Terraforming::Resource::DBParameterGroup,
    # Terraforming::Resource::DBSecurityGroup,
    # Terraforming::Resource::DBSubnetGroup,
    Terraforming::Resource::EC2,
    Terraforming::Resource::ElastiCacheCluster,
    # Terraforming::Resource::ElastiCacheSubnetGroup,
    Terraforming::Resource::EIP,
    Terraforming::Resource::EFSFileSystem,
    Terraforming::Resource::ELB,
    # Terraforming::Resource::IAMGroup,
    # Terraforming::Resource::IAMGroupMembership,
    # Terraforming::Resource::IAMGroupPolicy,
    # Terraforming::Resource::IAMInstanceProfile,
    # Terraforming::Resource::IAMPolicy,
    # Terraforming::Resource::IAMPolicyAttachment,
    # Terraforming::Resource::IAMRole,
    # Terraforming::Resource::IAMRolePolicy,
    # Terraforming::Resource::IAMUser,
    # Terraforming::Resource::IAMUserPolicy,
    # Terraforming::Resource::KMSAlias,
    Terraforming::Resource::KMSKey,
    # Terraforming::Resource::LaunchConfiguration,
    Terraforming::Resource::InternetGateway,
    # Terraforming::Resource::NetworkACL,
    Terraforming::Resource::NATGateway,
    # Terraforming::Resource::NetworkInterface,
    Terraforming::Resource::Route53Record,
    Terraforming::Resource::Route53Zone,
    Terraforming::Resource::RDS,
    Terraforming::Resource::Redshift,
    # Terraforming::Resource::RouteTable,
    # Terraforming::Resource::RouteTableAssociation,
    Terraforming::Resource::S3,
    # Terraforming::Resource::SecurityGroup,
    # Terraforming::Resource::Subnet,
    Terraforming::Resource::SQS,
    # Terraforming::Resource::VPC,
    Terraforming::Resource::VPNGateway,
    Terraforming::Resource::SNSTopic,
    Terraforming::Resource::SNSTopicSubscription,
    Terraforming::Resource::Config,
  ], options)
end

#asgObject



68
69
70
# File 'lib/terraforming/cli.rb', line 68

def asg
  execute(Terraforming::Resource::AutoScalingGroup, options)
end

#cwaObject



73
74
75
# File 'lib/terraforming/cli.rb', line 73

def cwa
  execute(Terraforming::Resource::CloudWatchAlarm, options)
end

#dbpgObject



78
79
80
# File 'lib/terraforming/cli.rb', line 78

def dbpg
  execute(Terraforming::Resource::DBParameterGroup, options)
end

#dbsgObject



83
84
85
# File 'lib/terraforming/cli.rb', line 83

def dbsg
  execute(Terraforming::Resource::DBSecurityGroup, options)
end

#dbsnObject



88
89
90
# File 'lib/terraforming/cli.rb', line 88

def dbsn
  execute(Terraforming::Resource::DBSubnetGroup, options)
end

#ec2Object



93
94
95
# File 'lib/terraforming/cli.rb', line 93

def ec2
  execute(Terraforming::Resource::EC2, options)
end

#eccObject



98
99
100
# File 'lib/terraforming/cli.rb', line 98

def ecc
  execute(Terraforming::Resource::ElastiCacheCluster, options)
end

#ecsnObject



103
104
105
# File 'lib/terraforming/cli.rb', line 103

def ecsn
  execute(Terraforming::Resource::ElastiCacheSubnetGroup, options)
end

#efsObject



113
114
115
# File 'lib/terraforming/cli.rb', line 113

def efs
  execute(Terraforming::Resource::EFSFileSystem, options)
end

#eipObject



108
109
110
# File 'lib/terraforming/cli.rb', line 108

def eip
  execute(Terraforming::Resource::EIP, options)
end

#elbObject



118
119
120
# File 'lib/terraforming/cli.rb', line 118

def elb
  execute(Terraforming::Resource::ELB, options)
end

#iamgObject



123
124
125
# File 'lib/terraforming/cli.rb', line 123

def iamg
  execute(Terraforming::Resource::IAMGroup, options)
end

#iamgmObject



128
129
130
# File 'lib/terraforming/cli.rb', line 128

def iamgm
  execute(Terraforming::Resource::IAMGroupMembership, options)
end

#iamgpObject



133
134
135
# File 'lib/terraforming/cli.rb', line 133

def iamgp
  execute(Terraforming::Resource::IAMGroupPolicy, options)
end

#iamipObject



138
139
140
# File 'lib/terraforming/cli.rb', line 138

def iamip
  execute(Terraforming::Resource::IAMInstanceProfile, options)
end

#iampObject



143
144
145
# File 'lib/terraforming/cli.rb', line 143

def iamp
  execute(Terraforming::Resource::IAMPolicy, options)
end

#iampaObject



148
149
150
# File 'lib/terraforming/cli.rb', line 148

def iampa
  execute(Terraforming::Resource::IAMPolicyAttachment, options)
end

#iamrObject



153
154
155
# File 'lib/terraforming/cli.rb', line 153

def iamr
  execute(Terraforming::Resource::IAMRole, options)
end

#iamrpObject



158
159
160
# File 'lib/terraforming/cli.rb', line 158

def iamrp
  execute(Terraforming::Resource::IAMRolePolicy, options)
end

#iamuObject



163
164
165
# File 'lib/terraforming/cli.rb', line 163

def iamu
  execute(Terraforming::Resource::IAMUser, options)
end

#iamupObject



168
169
170
# File 'lib/terraforming/cli.rb', line 168

def iamup
  execute(Terraforming::Resource::IAMUserPolicy, options)
end

#igwObject



188
189
190
# File 'lib/terraforming/cli.rb', line 188

def igw
  execute(Terraforming::Resource::InternetGateway, options)
end

#kmsaObject



173
174
175
# File 'lib/terraforming/cli.rb', line 173

def kmsa
  execute(Terraforming::Resource::KMSAlias, options)
end

#kmskObject



178
179
180
# File 'lib/terraforming/cli.rb', line 178

def kmsk
  execute(Terraforming::Resource::KMSKey, options)
end

#lcObject



183
184
185
# File 'lib/terraforming/cli.rb', line 183

def lc
  execute(Terraforming::Resource::LaunchConfiguration, options)
end

#naclObject



193
194
195
# File 'lib/terraforming/cli.rb', line 193

def nacl
  execute(Terraforming::Resource::NetworkACL, options)
end

#natObject



198
199
200
# File 'lib/terraforming/cli.rb', line 198

def nat
  execute(Terraforming::Resource::NATGateway, options)
end

#nifObject



203
204
205
# File 'lib/terraforming/cli.rb', line 203

def nif
  execute(Terraforming::Resource::NetworkInterface, options)
end

#r53rObject



208
209
210
# File 'lib/terraforming/cli.rb', line 208

def r53r
  execute(Terraforming::Resource::Route53Record, options)
end

#r53zObject



213
214
215
# File 'lib/terraforming/cli.rb', line 213

def r53z
  execute(Terraforming::Resource::Route53Zone, options)
end

#rdsObject



218
219
220
# File 'lib/terraforming/cli.rb', line 218

def rds
  execute(Terraforming::Resource::RDS, options)
end

#rsObject



223
224
225
# File 'lib/terraforming/cli.rb', line 223

def rs
  execute(Terraforming::Resource::Redshift, options)
end

#rtObject



228
229
230
# File 'lib/terraforming/cli.rb', line 228

def rt
  execute(Terraforming::Resource::RouteTable, options)
end

#rtaObject



233
234
235
# File 'lib/terraforming/cli.rb', line 233

def rta
  execute(Terraforming::Resource::RouteTableAssociation, options)
end

#s3Object



238
239
240
# File 'lib/terraforming/cli.rb', line 238

def s3
  execute(Terraforming::Resource::S3, options)
end

#sgObject



243
244
245
# File 'lib/terraforming/cli.rb', line 243

def sg
  execute(Terraforming::Resource::SecurityGroup, options)
end

#snObject



248
249
250
# File 'lib/terraforming/cli.rb', line 248

def sn
  execute(Terraforming::Resource::Subnet, options)
end

#snssObject



273
274
275
# File 'lib/terraforming/cli.rb', line 273

def snss
  execute(Terraforming::Resource::SNSTopicSubscription, options)
end

#snstObject



268
269
270
# File 'lib/terraforming/cli.rb', line 268

def snst
  execute(Terraforming::Resource::SNSTopic, options)
end

#sqsObject



253
254
255
# File 'lib/terraforming/cli.rb', line 253

def sqs
  execute(Terraforming::Resource::SQS, options)
end

#vgwObject



263
264
265
# File 'lib/terraforming/cli.rb', line 263

def vgw
  execute(Terraforming::Resource::VPNGateway, options)
end

#vpcObject



258
259
260
# File 'lib/terraforming/cli.rb', line 258

def vpc
  execute(Terraforming::Resource::VPC, options)
end