Sha256: aeccf82b655253e94610e8d8e0f42ff4e99906ea032b76db95c8a1cca72db01d
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
require 'rubygems' require 'base64' require 'cgi' require 'excon' require 'formatador' require 'time' __DIR__ = File.dirname(__FILE__) $LOAD_PATH.unshift __DIR__ unless $LOAD_PATH.include?(__DIR__) || $LOAD_PATH.include?(File.expand_path(__DIR__)) require 'fog/core' module Fog @mocking = false unless const_defined?(:VERSION) VERSION = '0.3.22' end module Mock @delay = 1 def self.delay @delay end def self.delay=(new_delay) raise ArgumentError, "delay must be non-negative" unless new_delay >= 0 @delay = new_delay end def self.not_implemented raise Fog::Errors::MockNotImplemented.new("Contributions welcome!") end end def self.bin @bin ||= false end def self.bin=(new_bin) @bin = new_bin end def self.mock! @mocking = true end def self.mocking? !!@mocking end def self.wait_for(timeout=600, interval=1, &block) duration = 0 start = Time.now until yield || duration > timeout sleep(interval) duration = Time.now - start end if duration > timeout false else { :duration => duration } end end end require 'fog/aws' require 'fog/bluebox' require 'fog/brightbox' require 'fog/go_grid' require 'fog/linode' require 'fog/local' require 'fog/new_servers' require 'fog/rackspace' require 'fog/slicehost' require 'fog/terremark' require 'fog/vcloud' require 'fog/google'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-0.3.22 | lib/fog.rb |