1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Missing HEAD method.

This commit is contained in:
Andrew Newman 2011-11-02 14:39:43 +10:00
parent f29c7b18ed
commit 95ccf23d05
5 changed files with 34 additions and 14 deletions

View file

@ -0,0 +1,18 @@
module Fog
module Storage
class Ninefold
class Real
def head_object(namespace = '', options = {})
options = options.reject {|key, value| value.nil?}
request({
:expects => 200,
:method => 'HEAD',
:path => "namespace/" + namespace,
:query => {},
:parse => true
}.merge(options))
end
end
end
end
end