Commit d06372f1 authored by Daisuke Fujita's avatar Daisuke Fujita

Add CLI for Route53 hosted zone

parent 6415f834
......@@ -66,6 +66,12 @@ module Terraforming
execute(Terraforming::Resource::NetworkACL, options)
end
desc "r53z", "Route53 Hosted Zone"
option :tfstate, type: :boolean
def r53z
execute(Terraforming::Resource::Route53Zone, options)
end
desc "rds", "RDS"
option :tfstate, type: :boolean
def rds
......
......@@ -178,6 +178,22 @@ module Terraforming
end
end
describe "r53z" do
context "without --tfstate" do
it "should export Route53Zone tf" do
expect(Terraforming::Resource::Route53Zone).to receive(:tf)
described_class.new.invoke(:r53z, [], {})
end
end
context "with --tfstate" do
it "should export Route53Zone tfstate" do
expect(Terraforming::Resource::Route53Zone).to receive(:tfstate)
described_class.new.invoke(:r53z, [], { tfstate: true })
end
end
end
describe "RDS" do
context "without --tfstate" do
it "should export RDS tf" do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment