Sha256: 0e792fd7b821a38da8c4d6bb6aa9f4e057b9996242c6b5988d0c28da03fb7e6b

Contents?: true

Size: 690 Bytes

Versions: 1

Compression:

Stored size: 690 Bytes

Contents

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

      class Mock
        def get_bare_metal_servers
          response = Excon::Response.new
          response.body = @bare_metal_servers
          response.status = 200
          response
        end

      end

      class Real
        def get_bare_metal_servers
          request(:account, :get_hardware, :query => 'objectMask=mask[datacenter,memory,processorCoreAmount,hardDrives,datacenter,hourlyBillingFlag,operatingSystem.passwords.password]')
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-softlayer-0.1.1 lib/fog/softlayer/requests/compute/get_bare_metal_servers.rb