Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Add CLI command iampa
Browse files Browse the repository at this point in the history
  • Loading branch information
dtan4 committed Jun 12, 2016
1 parent bedf359 commit 269405c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/terraforming/cli.rb
Expand Up @@ -76,6 +76,11 @@ def iamp
execute(Terraforming::Resource::IAMPolicy, options)
end

desc "iamp", "IAM Policy Attachment"
def iampa
execute(Terraforming::Resource::IAMPolicyAttachment, options)
end

desc "iamr", "IAM Role"
def iamr
execute(Terraforming::Resource::IAMRole, options)
Expand Down
11 changes: 9 additions & 2 deletions spec/lib/terraforming/cli_spec.rb
Expand Up @@ -130,6 +130,13 @@ module Terraforming
it_behaves_like "CLI examples"
end

describe "iampa" do
let(:klass) { Terraforming::Resource::IAMPolicyAttachment }
let(:command) { :iampa }

it_behaves_like "CLI examples"
end

describe "iamr" do
let(:klass) { Terraforming::Resource::IAMRole }
let(:command) { :iamr }
Expand Down Expand Up @@ -262,14 +269,14 @@ module Terraforming

it_behaves_like "CLI examples"
end

describe "vgw" do
let(:klass) { Terraforming::Resource::VPNGateway }
let(:command) { :vgw }

it_behaves_like "CLI examples"
end

end

context "flush to stdout" do
Expand Down

0 comments on commit 269405c

Please sign in to comment.