Sha256: 975e0f3634de3859058329f455f935ff2451293f5a78c471b8f3f5cda7bd5ed2
Contents?: true
Size: 579 Bytes
Versions: 5
Compression:
Stored size: 579 Bytes
Contents
module Fog module Volume class OpenStack class Real def extend_volume(volume_id, size) body = { 'os-extend' => { 'new_size' => size } } request( :expects => 202, :method => 'POST', :path => "volumes/#{volume_id}/action", :body => Fog::JSON.encode(body) ) end end class Mock def extend_volume(volume_id, size) response = Excon::Response.new response.status = 202 response end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems