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
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/bin/stormondemand.rb
fog-1.3.1 lib/fog/bin/stormondemand.rb
fog-1.3.0 lib/fog/bin/stormondemand.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/bin/stormondemand.rb
fog-1.2.0 lib/fog/bin/stormondemand.rb
ktheory-fog-1.1.2 lib/fog/bin/stormondemand.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/bin/stormondemand.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/bin/stormondemand.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/bin/stormondemand.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/bin/stormondemand.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/bin/stormondemand.rb
fog-1.1.2 lib/fog/bin/stormondemand.rb
fog_tractical-1.1.4 lib/fog/bin/stormondemand.rb
fog_tractical-1.1.3 lib/fog/bin/stormondemand.rb
fog-1.1.1 lib/fog/bin/stormondemand.rb
fog-1.1.0 lib/fog/bin/stormondemand.rb