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
Julian Fischer enterprise-rails authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/fog/hp/models/storage/file.rb
5 lib/fog/hp/models/storage/file.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.