Sha256: 2968d023a2fe5521e832826d77bf5f94b4e8c8955871a7d4d64557bf7faf21f7
Contents?: true
Size: 522 Bytes
Versions: 20
Compression:
Stored size: 522 Bytes
Contents
module Fog module OpenStack class Baremetal class Real def get_driver(driver_name) request( :expects => [200, 204], :method => 'GET', :path => "drivers/#{driver_name}" ) end end class Mock def get_driver(_driver_name) response = Excon::Response.new response.status = [200, 204][rand(2)] response.body = data[:drivers].first response end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems