Sha256: ff8547bda79ab176edb50e7e611d2ee029e9bd8bc8c52e6c974cf991c28eb58b
Contents?: true
Size: 618 Bytes
Versions: 21
Compression:
Stored size: 618 Bytes
Contents
module Fog module Compute class OpenStack class Real def list_snapshots(detailed=true) path = detailed ? 'os-snapshots/detail' : 'os-snapshots' request( :expects => 200, :method => 'GET', :path => path ) end end class Mock def list_snapshots(detailed=true) response = Excon::Response.new response.status = 200 response.body = { 'snapshots' => [get_snapshot_details.body["snapshot"]] } response end end end end end
Version data entries
21 entries across 21 versions & 4 rubygems