2009-09-14 00:24:22 -04:00
|
|
|
__DIR__ = File.dirname(__FILE__)
|
|
|
|
|
|
|
|
$LOAD_PATH.unshift __DIR__ unless
|
|
|
|
$LOAD_PATH.include?(__DIR__) ||
|
|
|
|
$LOAD_PATH.include?(File.expand_path(__DIR__))
|
|
|
|
|
2009-08-07 03:28:53 -04:00
|
|
|
module Fog
|
|
|
|
|
2009-09-15 00:14:34 -04:00
|
|
|
def self.mock!
|
|
|
|
@mocking = true
|
|
|
|
self.reload
|
2009-08-10 11:30:28 -04:00
|
|
|
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
|
2009-09-14 00:24:22 -04:00
|
|
|
load "fog/aws.rb"
|
2009-10-10 22:05:17 -04:00
|
|
|
load "fog/rackspace.rb"
|
2009-08-07 03:28:53 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
2009-08-07 22:55:11 -04:00
|
|
|
|
2009-08-17 18:11:53 -04:00
|
|
|
Fog.reload
|