mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Reformatting and making consistent with other classes.
This commit is contained in:
parent
0670616f0c
commit
1b32cf88fe
1 changed files with 5 additions and 3 deletions
|
@ -2,16 +2,18 @@ module Fog
|
||||||
module Storage
|
module Storage
|
||||||
class Ninefold
|
class Ninefold
|
||||||
class Real
|
class Real
|
||||||
def head_object(namespace = '', options = { })
|
|
||||||
options = options.reject { |key, value| value.nil? }
|
def head_namespace(namespace = '', options = {})
|
||||||
|
options = options.reject {|key, value| value.nil?}
|
||||||
request({
|
request({
|
||||||
:expects => 200,
|
:expects => 200,
|
||||||
:method => 'HEAD',
|
:method => 'HEAD',
|
||||||
:path => "namespace/" + namespace,
|
:path => "namespace/" + namespace,
|
||||||
:query => {},
|
:query => {},
|
||||||
:parse => true
|
:parse => true
|
||||||
}.merge(options))
|
}.merge(options))
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in a new issue