Class: AwsRotate::Base

Inherits:
Object
  • Object
show all
Includes:
AwsServices
Defined in:
lib/aws_rotate/base.rb

Direct Known Subclasses

Backup, Key, Keys, List

Instance Method Summary collapse

Methods included from AwsServices

#iam, #sts

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
10
# File 'lib/aws_rotate/base.rb', line 5

def initialize(options={})
  @options = options
  @config_path = options[:config] || "#{ENV['HOME']}/.aws/config"
  @credentials_path = options[:credentials] || "#{ENV['HOME']}/.aws/credentials"
  @profile = ENV['AWS_PROFILE'] || default_profile
end