Sha256: 76923123f260fce4745ba9fd4250a0ca5370eb0d19b1fec6a7e60cf203fb5dc7
Contents?: true
Size: 695 Bytes
Versions: 6
Compression:
Stored size: 695 Bytes
Contents
class Google < Fog::Bin class << self def class_for(key) case key when :storage Fog::Storage::Google else raise ArgumentError, "Unsupported #{self} service: #{key}" end end def [](service) @@connections ||= Hash.new do |hash, key| hash[key] = case key when :storage Fog::Logger.warning("Google[:storage] is deprecated, use Storage[:google] instead") Fog::Storage.new(:provider => 'Google') else raise ArgumentError, "Unrecognized service: #{key.inspect}" end end @@connections[service] end def services Fog::Google.services end end end
Version data entries
6 entries across 6 versions & 3 rubygems