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:
parent
f29c7b18ed
commit
95ccf23d05
5 changed files with 34 additions and 14 deletions
18
lib/fog/ninefold/requests/storage/head_object.rb
Normal file
18
lib/fog/ninefold/requests/storage/head_object.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue