Sha256: b88f8d5f7b66e9b02a44b8785cd0abf7e57cbd4da19f8833a9079455f0cadf07

Contents?: true

Size: 474 Bytes

Versions: 1

Compression:

Stored size: 474 Bytes

Contents

require "aws/sts/version"
require "aws/sts/role"
require 'aws_config'

module Aws
  module Sts
    class Cli < StandardError
      def initialize
      end

      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws-sts-0.1.0 lib/aws/sts.rb