Sha256: 2c23d9440737c01082a523573f617fca0823c66b8a8bbad14b54e66d745b0186
Contents?: true
Size: 955 Bytes
Versions: 1
Compression:
Stored size: 955 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 path = File.expand_path('~/.fog') if File.exists?(path) File.open(path) do |file| YAML.load(file.read)[key] end else nil end end end end Fog.reload
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-0.0.40 | lib/fog.rb |