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

22 lines
301 B
Ruby
Raw Normal View History

2009-08-07 03:28:53 -04:00
module Fog
2009-08-10 11:30:28 -04:00
def self.mocking=(new_mocking)
old_mocking = @mocking
@mocking = new_mocking
unless old_mocking == new_mocking
self.reload
end
end
2009-08-07 03:28:53 -04:00
def self.mocking?
2009-08-10 11:30:28 -04:00
!!@mocking
end
def self.reload
load "#{File.dirname(__FILE__)}/fog/aws.rb"
2009-08-07 03:28:53 -04:00
end
end
2009-08-17 18:11:53 -04:00
Fog.reload