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
2010-02-15 17:15:56 -08:00

52 lines
921 B
Ruby

require 'rubygems'
require 'base64'
require 'cgi'
require 'digest/md5'
require 'excon'
require 'formatador'
require 'hmac-sha1'
require 'hmac-sha2'
require 'json'
require 'mime/types'
require 'nokogiri'
require 'time'
__DIR__ = File.dirname(__FILE__)
$LOAD_PATH.unshift __DIR__ unless
$LOAD_PATH.include?(__DIR__) ||
$LOAD_PATH.include?(File.expand_path(__DIR__))
module Fog
class MockNotImplemented < StandardError; end
def self.mock!
@mocking = true
self.reload
end
def self.mocking?
!!@mocking
end
def self.dependencies
[
'fog/collection.rb',
'fog/connection.rb',
'fog/model.rb',
'fog/parser.rb',
'fog/aws.rb',
'fog/rackspace.rb',
'fog/slicehost.rb',
'fog/terremark.rb'
]
end
def self.reload
self.dependencies.each {|dependency| load(dependency)}
end
end
Fog.dependencies.each {|dependency| require(dependency)}