Commit d5a74a60 authored by Daisuke Fujita's avatar Daisuke Fujita

Add CLI for Route53 record

parent 5f76dfbf
......@@ -66,6 +66,12 @@ module Terraforming
execute(Terraforming::Resource::NetworkACL, options)
end
desc "r53r", "Route53 Record"
option :tfstate, type: :boolean
def r53r
execute(Terraforming::Resource::Route53Record, options)
end
desc "r53z", "Route53 Hosted Zone"
option :tfstate, type: :boolean
def r53z
......
......@@ -178,6 +178,22 @@ module Terraforming
end
end
describe "r53r" do
context "without --tfstate" do
it "should export Route53Record tf" do
expect(Terraforming::Resource::Route53Record).to receive(:tf)
described_class.new.invoke(:r53r, [], {})
end
end
context "with --tfstate" do
it "should export Route53Record tfstate" do
expect(Terraforming::Resource::Route53Record).to receive(:tfstate)
described_class.new.invoke(:r53r, [], { tfstate: true })
end
end
end
describe "r53z" do
context "without --tfstate" do
it "should export Route53Zone 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