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

Enable models layer methods and return nil from cdn call.

This commit is contained in:
Rupak Ganguly 2011-06-16 00:36:38 -04:00
parent be0b19f7c7
commit 8c748b133a

View file

@ -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