Commit 8ba210d0 authored by Daisuke Fujita's avatar Daisuke Fujita

Add nacl subcommand

parent 4ea01fa0
......@@ -30,6 +30,12 @@ module Terraforming
execute(Terraforming::Resource::ELB, options)
end
desc "nacl", "Network ACL"
option :tfstate, type: :boolean
def nacl
execute(Terraforming::Resource::NetworkACL, options)
end
desc "rds", "RDS"
option :tfstate, type: :boolean
def rds
......
......@@ -82,6 +82,22 @@ module Terraforming
end
end
describe "nacl" do
context "without --tfstate" do
it "should export NetworkACL tf" do
expect(Terraforming::Resource::NetworkACL).to receive(:tf)
described_class.new.invoke(:nacl, [], {})
end
end
context "with --tfstate" do
it "should export NetworkACL tfstate" do
expect(Terraforming::Resource::NetworkACL).to receive(:tfstate)
described_class.new.invoke(:nacl, [], { 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