class Aws::Session::Credentials::Config
Holds configuration
Attributes
path[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/aws/session/credentials/config.rb, line 12 def initialize(options = {}) @path = File.expand_path(options[:path] || default_path) end
Public Instance Methods
default_path()
click to toggle source
# File lib/aws/session/credentials/config.rb, line 16 def default_path File.join(%w(~ .aws aws-session-config.yml)) end
profiles_hash()
click to toggle source
@return [Hash<String,Hash>]
# File lib/aws/session/credentials/config.rb, line 21 def profiles_hash self[:profiles] || {} end
profiles_hash=(hsh)
click to toggle source
@param [Hash] hsh
# File lib/aws/session/credentials/config.rb, line 26 def profiles_hash=(hsh) self[:profiles] = hsh end
roles_hash()
click to toggle source
@return [Hash<String,Hash>]
# File lib/aws/session/credentials/config.rb, line 31 def roles_hash self[:roles] || {} end
roles_hash=(hsh)
click to toggle source
@param [Hash] hsh
# File lib/aws/session/credentials/config.rb, line 36 def roles_hash=(hsh) self[:roles] = hsh end