class Aws::Session::Credentials::Cache
Holds session credentials
Attributes
path[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/aws/session/credentials/cache.rb, line 11 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/cache.rb, line 15 def default_path File.join(%w(~ .aws aws-session-cache.yml)) end
profiles_hash()
click to toggle source
@return [Hash<String,Hash>]
# File lib/aws/session/credentials/cache.rb, line 20 def profiles_hash self[:profiles] || {} end
profiles_hash=(hsh)
click to toggle source
@param [Hash] hsh
# File lib/aws/session/credentials/cache.rb, line 25 def profiles_hash=(hsh) self[:profiles] = hsh end