Exception: Aws::Sts::Cli

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aws/sts.rb

Instance Method Summary collapse

Constructor Details

#initializeCli

Returns a new instance of Cli.



8
9
# File 'lib/aws/sts.rb', line 8

def initialize
end

Instance Method Details

#mainObject



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