Class: AwsRotate::Base
- Inherits:
-
Object
- Object
- AwsRotate::Base
- Includes:
- AwsServices
- Defined in:
- lib/aws_rotate/base.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from AwsServices
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 = @config_path = [:config] || "#{ENV['HOME']}/.aws/config" @credentials_path = [:credentials] || "#{ENV['HOME']}/.aws/credentials" @profile = ENV['AWS_PROFILE'] || default_profile end |