Sha256: 3f6a3dc03e1ca883a96d6158f4f343a870add27557a40683e786395621e7a276
Contents?: true
Size: 695 Bytes
Versions: 18
Compression:
Stored size: 695 Bytes
Contents
class Atmos < Fog::Bin class << self def class_for(key) case key when :storage Fog::Storage::Atmos 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("Atmos[:storage] is not recommended, use Storage[:atmos] for portability") Fog::Storage.new(:provider => 'Atmos') else raise ArgumentError, "Unrecognized service: #{service}" end end @@connections[service] end def services Fog::Atmos.services end end end
Version data entries
18 entries across 18 versions & 4 rubygems