Class: ZAWS::Command::IAM
- Inherits:
-
Thor
- Object
- Thor
- ZAWS::Command::IAM
- Defined in:
- lib/zaws/command/iam.rb
Instance Attribute Summary collapse
-
#aws ⇒ Object
Returns the value of attribute aws.
-
#out ⇒ Object
Returns the value of attribute out.
-
#print_exit_code ⇒ Object
Returns the value of attribute print_exit_code.
Instance Method Summary collapse
-
#initialize(*args) ⇒ IAM
constructor
A new instance of IAM.
- #view_default_policy_version(policy_arn) ⇒ Object
- #view_role_policy(role, policy) ⇒ Object
Constructor Details
#initialize(*args) ⇒ IAM
Returns a new instance of IAM.
12 13 14 15 16 17 18 19 |
# File 'lib/zaws/command/iam.rb', line 12 def initialize(*args) super shellout=ZAWS::Helper::Shell.new awscli = ZAWS::AWSCLI.new(shellout,false) @aws = ZAWS::AWS.new(shellout,awscli) @out = $stdout @print_exit_code = false end |
Instance Attribute Details
#aws ⇒ Object
Returns the value of attribute aws.
8 9 10 |
# File 'lib/zaws/command/iam.rb', line 8 def aws @aws end |
#out ⇒ Object
Returns the value of attribute out.
9 10 11 |
# File 'lib/zaws/command/iam.rb', line 9 def out @out end |
#print_exit_code ⇒ Object
Returns the value of attribute print_exit_code.
10 11 12 |
# File 'lib/zaws/command/iam.rb', line 10 def print_exit_code @print_exit_code end |
Instance Method Details
#view_default_policy_version(policy_arn) ⇒ Object
29 30 31 |
# File 'lib/zaws/command/iam.rb', line 29 def view_default_policy_version(policy_arn) @aws.iam.policy.view_default_policy_version(policy_arn,[:viewtype],@out,[:verbose]?@out:nil) end |
#view_role_policy(role, policy) ⇒ Object
23 24 25 |
# File 'lib/zaws/command/iam.rb', line 23 def view_role_policy(role,policy) @aws.iam.role.view_policy(role,policy,[:viewtype],@out,[:verbose]?@out:nil) end |