Sha256: 128d082d1c48318f35d1ddc8e523cc267fcbc7715dfd152b4f2f22cbacf182d3

Contents?: true

Size: 749 Bytes

Versions: 96

Compression:

Stored size: 749 Bytes

Contents

class StormOnDemand < Fog::Bin
  class << self

    def class_for(key)
      case key
      when :compute
        Fog::Compute::StormOnDemand
      else 
        raise ArgumentError, "Unsupported #{self} service: #{key}"
      end
    end

    def [](service)
      @@connections ||= Hash.new do |hash, key|
        hash[key] = case key
        when :compute
          Fog::Logger.warning("StormOnDemand[:compute] is not recommended, use Compute[:stormondemand] for portability")
          Fog::Compute.new(:provider => 'StormOnDemand')
        else
          raise ArgumentError, "Unrecognized service: #{key.inspect}"
        end
      end
      @@connections[service]
    end

    def services
      Fog::StormOnDemand.services
    end

  end
end

Version data entries

96 entries across 96 versions & 17 rubygems

Version Path
fog-test-again-1.6.0 lib/fog/bin/stormondemand.rb
fog-test-me-1.10.0 lib/fog/bin/stormondemand.rb
fog-parser-fix-1.6.0 lib/fog/bin/stormondemand.rb
fog-1.10.0 lib/fog/bin/stormondemand.rb
fog-1.9.0 lib/fog/bin/stormondemand.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/bin/stormondemand.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/bin/stormondemand.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/bin/stormondemand.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/bin/stormondemand.rb
fog-sgonyea-1.8.1 lib/fog/bin/stormondemand.rb
fog-1.8.0 lib/fog/bin/stormondemand.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/bin/stormondemand.rb
fog-1.7.0 lib/fog/bin/stormondemand.rb
fog-1.6.0 lib/fog/bin/stormondemand.rb
fog-1.5.0 lib/fog/bin/stormondemand.rb
rackspace-fog-1.4.2 lib/rackspace-fog/bin/stormondemand.rb
fog-1.4.0 lib/fog/bin/stormondemand.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/bin/stormondemand.rb
michiels-fog-1.3.1 lib/fog/bin/stormondemand.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/bin/stormondemand.rb