Sha256: 8d3750e0a47fb18712577c968b96dd4ac94673a88140345fb4f08870b5710809
Contents?: true
Size: 705 Bytes
Versions: 4
Compression:
Stored size: 705 Bytes
Contents
class OpenStack < Fog::Bin class << self def class_for(key) case key when :compute Fog::Compute::OpenStack else raise ArgumentError, "Unrecognized service: #{key}" end end def [](service) @@connections ||= Hash.new do |hash, key| hash[key] = case key when :compute Fog::Logger.warning("OpenStack[:compute] is deprecated, use Compute[:rackspace] instead") Fog::Compute.new(:provider => 'OpenStack') else raise ArgumentError, "Unrecognized service: #{key.inspect}" end end @@connections[service] end def services Fog::OpenStack.services end end end
Version data entries
4 entries across 4 versions & 3 rubygems