Sha256: 0fb4d47d49a9aaf3bb935a201a6b599eb0747ad8bd8938432c94d21080a04253

Contents?: true

Size: 543 Bytes

Versions: 54

Compression:

Stored size: 543 Bytes

Contents

#
# Author:: Matt Eldridge (<matt.eldridge@us.ibm.com>)
# © Copyright IBM Corporation 2014.
#
# LICENSE: MIT (http://opensource.org/licenses/MIT)
#

module Fog
  module Network
    class Softlayer

      class Mock

        def get_datacenters
          response = Excon::Response.new
          response.status = 200
          response.body = @datacenters
          response
        end

      end

      class Real
        def get_datacenters
          request(:location_datacenter, :get_datacenters)
        end
      end
    end
  end
end

Version data entries

54 entries across 52 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/requests/network/get_datacenters.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/requests/network/get_datacenters.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-1.1.4 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-1.1.3 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-1.1.2 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-1.1.1 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-1.1.0 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-1.0.3 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-1.0.2 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-1.0.1 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-1.0.0 lib/fog/softlayer/requests/network/get_datacenters.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-softlayer-0.4.7/lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-0.4.7 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-0.4.6 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-0.4.5 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-0.4.4 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-0.4.3 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-0.4.2 lib/fog/softlayer/requests/network/get_datacenters.rb
fog-softlayer-0.4.2.pre lib/fog/softlayer/requests/network/get_datacenters.rb