Exception: Aws::Sts::Cli
- Inherits:
-
StandardError
- Object
- StandardError
- Aws::Sts::Cli
- Defined in:
- lib/aws/sts.rb
Instance Method Summary collapse
-
#initialize ⇒ Cli
constructor
A new instance of Cli.
- #main ⇒ Object
Constructor Details
#initialize ⇒ Cli
Returns a new instance of Cli.
8 9 |
# File 'lib/aws/sts.rb', line 8 def initialize end |
Instance Method Details
#main ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/aws/sts.rb', line 11 def main if ARGV.empty? Role.blurb else profile = ARGV[0] role_arn = AWSConfig[profile].role_arn region = AWSConfig[profile].region @role = Role.new(role_arn, region, profile) @role.print_keys end end |