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:
parent
be0b19f7c7
commit
8c748b133a
1 changed files with 11 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue