1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Include this to make refresh_credentials_if_expired method work properly with Mock

This commit is contained in:
Bohuslav Kabrda 2012-06-29 15:35:08 +02:00
parent 6cdb2e4276
commit 4124fbc79e

View file

@ -138,6 +138,7 @@ module Fog
end
class Mock
include Fog::AWS::CredentialFetcher::ConnectionMethods
def self.data
@data ||= Hash.new do |hash, region|
@ -209,6 +210,7 @@ module Fog
def initialize(options={})
@use_iam_profile = options[:use_iam_profile]
@aws_credentials_expire_at = Time::now + 1000
setup_credentials(options)
@region = options[:region] || 'us-east-1'