Sha256: 0ee14a040c6cfc5b2c67914772e7c29a0f55942da3e82a8501da3ac3fe33b6ef

Contents?: true

Size: 357 Bytes

Versions: 8

Compression:

Stored size: 357 Bytes

Contents

__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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fog-0.0.22 lib/fog.rb
fog-0.0.21 lib/fog.rb
fog-0.0.20 lib/fog.rb
fog-0.0.19 lib/fog.rb
fog-0.0.18 lib/fog.rb
fog-0.0.17 lib/fog.rb
fog-0.0.16 lib/fog.rb
fog-0.0.15 lib/fog.rb