Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adds Fog::Storage::HP::File#url method to enable compatibility with F…

…og::Storage::AWS::File
  • Loading branch information...
commit ea6827c12f9e30fcecd197ec15488a22032af491 1 parent 1a151b0
@enterprise-rails enterprise-rails authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/fog/hp/models/storage/file.rb
View
5 lib/fog/hp/models/storage/file.rb
@@ -69,6 +69,11 @@ def cdn_public_ssl_url
requires :key
self.collection.get_cdn_ssl_url(self.key)
end
+
+ # Gives compatiblity with AWS
+ def url(expires_secs, options = {})
+ temp_signed_url(expires_secs, "GET")
+ end
def temp_signed_url(expires_secs, method)
requires :directory, :key

1 comment on commit ea6827c

@rupakg

@enterprise-rails I don't know if I like adding that 'url' method. It does not describe the real purpose, and I have used that to just return the real url of the file/object. See shared_file.rb. I think we need to remove this for now.

Please sign in to comment.
Something went wrong with that request. Please try again.