lib/terraforming/cli.rb in terraforming-0.1.0 vs lib/terraforming/cli.rb in terraforming-0.1.1
- old
+ new
@@ -21,20 +21,35 @@
desc "ec2", "EC2"
def ec2
execute(Terraforming::Resource::EC2, options)
end
+ desc "ecc", "ElastiCache Cluster"
+ def ecc
+ execute(Terraforming::Resource::ElastiCacheCluster, options)
+ end
+
+ desc "ecsn", "ElastiCache Subnet Group"
+ def ecsn
+ execute(Terraforming::Resource::ElastiCacheSubnetGroup, options)
+ end
+
desc "elb", "ELB"
def elb
execute(Terraforming::Resource::ELB, options)
end
desc "iamg", "IAM Group"
def iamg
execute(Terraforming::Resource::IAMGroup, options)
end
+ desc "iamgm", "IAM Group Membership"
+ def iamgm
+ execute(Terraforming::Resource::IAMGroupMembership, options)
+ end
+
desc "iamgp", "IAM Group Policy"
def iamgp
execute(Terraforming::Resource::IAMGroupPolicy, options)
end
@@ -121,10 +136,10 @@
end
def tfstate(klass, tfstate_path)
return klass.tfstate unless tfstate_path
- base_tfstate = JSON.parse(open(tfstate_path).read)
- klass.tfstate(tfstate_base: base_tfstate)
+ tfstate_base = JSON.parse(open(tfstate_path).read)
+ klass.tfstate(tfstate_base: tfstate_base)
end
end
end