Sha256: 025222124e5d9eda57839aa0a7170849877b9c0a9c5f5f76728fc463e8bac251

Contents?: true

Size: 701 Bytes

Versions: 17

Compression:

Stored size: 701 Bytes

Contents

class Clodo < Fog::Bin
  class << self
    def class_for(key)
      case key
      when :compute
        Fog::Compute::Clodo
      else
        raise ArgumentError, "Unrecognized service: #{key}"
      end
    end

    def [](service)
      @@connections ||= Hash.new do |hash, key|
        hash[key] = case key
        when :compute
          Formatador.display_line("[yellow][WARN] Clodo[:compute] is deprecated, use Compute[:clodo] instead[/]")
          Fog::Compute.new(:provider => 'Clodo')
        else
          raise ArgumentError, "Unrecognized service: #{key.inspect}"
        end
      end
      @@connections[service]
    end

    def services
      Fog::Clodo.services
    end
  end
end

Version data entries

17 entries across 17 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/bin/clodo.rb
fog-1.27.0 lib/fog/bin/clodo.rb
fog-1.26.0 lib/fog/bin/clodo.rb
fog-1.25.0 lib/fog/bin/clodo.rb
nsidc-fog-1.24.1 lib/fog/bin/clodo.rb
fog-1.24.0 lib/fog/bin/clodo.rb
ns-fog-1.22.11 lib/fog/bin/clodo.rb
ns-fog-1.22.10 lib/fog/bin/clodo.rb
ns-fog-1.22.9 lib/fog/bin/clodo.rb
ns-fog-1.22.8 lib/fog/bin/clodo.rb
ns-fog-1.22.7 lib/fog/bin/clodo.rb
ns-fog-1.22.6 lib/fog/bin/clodo.rb
fog-1.23.0 lib/fog/bin/clodo.rb
ns-fog-1.22.4 lib/fog/bin/clodo.rb
ns-fog-1.22.3 lib/fog/bin/clodo.rb
ns-fog-1.22.2 lib/fog/bin/clodo.rb
fog-1.22.1 lib/fog/bin/clodo.rb