Sha256: e19db08ebdbcc8bce2d87fdf3d69568dc175461d2835d0deb22d44ee48f47ba3
Contents?: true
Size: 575 Bytes
Versions: 39
Compression:
Stored size: 575 Bytes
Contents
module Fog module Volume class OpenStack module 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 module Mock def extend_volume(_volume_id, _size) response = Excon::Response.new response.status = 202 response end end end end end
Version data entries
39 entries across 37 versions & 3 rubygems