class Aws::Sts::Cli

Public Class Methods

new() click to toggle source
# File lib/aws/sts.rb, line 8
def initialize
end

Public Instance Methods

main() click to toggle source
# 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