Permalink
Browse files

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

…og::Storage::AWS::File
  • Loading branch information...
1 parent 1a151b0 commit ea6827c12f9e30fcecd197ec15488a22032af491 @enterprise-rails enterprise-rails committed Jun 24, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 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 commented on ea6827c Jun 26, 2013

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