mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
25 lines
357 B
Ruby
25 lines
357 B
Ruby
__DIR__ = File.dirname(__FILE__)
|
|
|
|
$LOAD_PATH.unshift __DIR__ unless
|
|
$LOAD_PATH.include?(__DIR__) ||
|
|
$LOAD_PATH.include?(File.expand_path(__DIR__))
|
|
|
|
module Fog
|
|
|
|
def self.mock!
|
|
@mocking = true
|
|
self.reload
|
|
end
|
|
|
|
def self.mocking?
|
|
!!@mocking
|
|
end
|
|
|
|
def self.reload
|
|
load "fog/aws.rb"
|
|
load "fog/rackspace.rb"
|
|
end
|
|
|
|
end
|
|
|
|
Fog.reload
|