Sha256: f527bb670140ded93bef02d3d7a2364e4a751d3f5f629070fa02651cfc08a1a2
Contents?: true
Size: 925 Bytes
Versions: 4
Compression:
Stored size: 925 Bytes
Contents
require 'rubygems' require 'base64' require 'cgi' require 'digest/md5' require 'excon' 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 def self.mock! @mocking = true self.reload end def self.mocking? !!@mocking end def self.reload load "fog/collection.rb" load "fog/connection.rb" load "fog/model.rb" load "fog/parser.rb" load "fog/aws.rb" load "fog/rackspace.rb" load "fog/slicehost.rb" end def self.credentials(key = :default) @credentials ||= begin credentials = {} File.open(File.expand_path('~/.fog')) do |file| credentials = YAML.load(file.read)[key] end credentials end end end Fog.reload
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
fog-0.0.39 | lib/fog.rb |
fog-0.0.38 | lib/fog.rb |
fog-0.0.37 | lib/fog.rb |
fog-0.0.36 | lib/fog.rb |