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 :hp_auth_url, :hp_servicenet, :hp_cdn_ssl, :persistent
|
||||||
recognizes :provider # remove post deprecation
|
recognizes :provider # remove post deprecation
|
||||||
|
|
||||||
# model_path 'fog/storage/models/hp'
|
model_path 'fog/storage/models/hp'
|
||||||
# model :directory
|
model :directory
|
||||||
# collection :directories
|
collection :directories
|
||||||
# model :file
|
model :file
|
||||||
# collection :files
|
collection :files
|
||||||
|
|
||||||
request_path 'fog/storage/requests/hp'
|
request_path 'fog/storage/requests/hp'
|
||||||
request :delete_container
|
request :delete_container
|
||||||
|
@ -27,11 +27,12 @@ module Fog
|
||||||
module Utils
|
module Utils
|
||||||
|
|
||||||
def cdn
|
def cdn
|
||||||
@cdn ||= Fog::CDN.new(
|
# @cdn ||= Fog::CDN.new(
|
||||||
:provider => 'HP',
|
# :provider => 'HP',
|
||||||
:hp_password => @hp_password,
|
# :hp_password => @hp_password,
|
||||||
:hp_username => @hp_username
|
# :hp_username => @hp_username
|
||||||
)
|
# )
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue