mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
22 lines
321 B
Ruby
22 lines
321 B
Ruby
module Fog
|
|
|
|
def self.mocking=(new_mocking)
|
|
old_mocking = @mocking
|
|
@mocking = new_mocking
|
|
unless old_mocking == new_mocking
|
|
self.reload
|
|
end
|
|
end
|
|
|
|
def self.mocking?
|
|
!!@mocking
|
|
end
|
|
|
|
def self.reload
|
|
load "#{File.dirname(__FILE__)}/fog/aws.rb"
|
|
Fog::AWS.reload
|
|
end
|
|
|
|
end
|
|
|
|
Fog.reload
|