From 8c748b133ae3157f9473854794427c7afcf1b867 Mon Sep 17 00:00:00 2001 From: Rupak Ganguly Date: Thu, 16 Jun 2011 00:36:38 -0400 Subject: [PATCH] Enable models layer methods and return nil from cdn call. --- lib/fog/storage/hp.rb | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/lib/fog/storage/hp.rb b/lib/fog/storage/hp.rb index c91628c91..4a42ffb92 100644 --- a/lib/fog/storage/hp.rb +++ b/lib/fog/storage/hp.rb @@ -6,11 +6,11 @@ module Fog recognizes :hp_auth_url, :hp_servicenet, :hp_cdn_ssl, :persistent recognizes :provider # remove post deprecation -# model_path 'fog/storage/models/hp' -# model :directory -# collection :directories -# model :file -# collection :files + model_path 'fog/storage/models/hp' + model :directory + collection :directories + model :file + collection :files request_path 'fog/storage/requests/hp' request :delete_container @@ -27,11 +27,12 @@ module Fog module Utils def cdn - @cdn ||= Fog::CDN.new( - :provider => 'HP', - :hp_password => @hp_password, - :hp_username => @hp_username - ) +# @cdn ||= Fog::CDN.new( +# :provider => 'HP', +# :hp_password => @hp_password, +# :hp_username => @hp_username +# ) + nil end end