Sha256: 97580a2b41e6fd100c8515e3d8d9ae03dde6d9d1cf760311111dd8a5e0ed2669
Contents?: true
Size: 580 Bytes
Versions: 34
Compression:
Stored size: 580 Bytes
Contents
module Fog module SharedFileSystem class OpenStack class Real def get_snapshot(id) request( :expects => 200, :method => 'GET', :path => "snapshots/#{id}" ) end end class Mock def get_snapshot(id) response = Excon::Response.new response.status = 200 snapshot = data[:snapshot_updated] || data[:snapshots_detail].first snapshot['id'] = id response.body = snapshot response end end end end end
Version data entries
34 entries across 32 versions & 3 rubygems