From 1b32cf88feda5f87f51cab3f14a135fcb52809e4 Mon Sep 17 00:00:00 2001 From: Andrew Newman Date: Sat, 5 Nov 2011 07:40:14 +1000 Subject: [PATCH] Reformatting and making consistent with other classes. --- .../storage/{head_object.rb => head_namespace.rb} | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) rename lib/fog/ninefold/requests/storage/{head_object.rb => head_namespace.rb} (68%) diff --git a/lib/fog/ninefold/requests/storage/head_object.rb b/lib/fog/ninefold/requests/storage/head_namespace.rb similarity index 68% rename from lib/fog/ninefold/requests/storage/head_object.rb rename to lib/fog/ninefold/requests/storage/head_namespace.rb index 07752ec57..436d65717 100644 --- a/lib/fog/ninefold/requests/storage/head_object.rb +++ b/lib/fog/ninefold/requests/storage/head_namespace.rb @@ -2,16 +2,18 @@ module Fog module Storage class Ninefold 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({ :expects => 200, :method => 'HEAD', :path => "namespace/" + namespace, :query => {}, :parse => true - }.merge(options)) + }.merge(options)) end + end end end