# File lib/fog/bin/voxel.rb, line 13 def [](service) @@connections ||= Hash.new do |hash, key| hash[key] = case key when :compute Fog::Logger.warning("Voxel[:compute] is not recommended, use Compute[:voxel] for portability") Fog::Compute.new(:provider => 'Voxel') else raise ArgumentError, "Unrecognized service: #{key.inspect}" end end @@connections[service] end
# File lib/fog/bin/voxel.rb, line 4 def class_for(key) case key when :compute Fog::Compute::Voxel else raise ArgumentError, "Unrecognized service: #{key}" end end
# File lib/fog/bin/voxel.rb, line 26 def services Fog::Voxel.services end