Sha256: 0c6c59afb598282b2fa86ce04b9946b5b085b04b3efd1fbf926da7c1b0f1af1b
Contents?: true
Size: 650 Bytes
Versions: 21
Compression:
Stored size: 650 Bytes
Contents
module Fog module OpenStack class Compute class Real def list_hypervisors(options = {}) request( :expects => 200, :method => 'GET', :path => 'os-hypervisors', :query => options ) end end class Mock def list_hypervisors(_options = {}) response = Excon::Response.new response.status = 200 response.body = {'hypervisors' => [ {"hypervisor_hostname" => "fake-mini", "id" => 2, "state" => "up", "status" => "enabled"} ]} response end end end end end
Version data entries
21 entries across 21 versions & 3 rubygems