1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Add helper method for cdn public url for file.

This commit is contained in:
Rupak Ganguly 2012-04-17 17:01:24 -04:00
parent 33a0227713
commit 6035e74f88

View file

@ -65,6 +65,11 @@ module Fog
self.collection.get_cdn_url(self.key)
end
def cdn_public_ssl_url
requires :key
self.collection.get_cdn_ssl_url(self.key)
end
def save(options = {})
requires :body, :directory, :key
options['Content-Type'] = content_type if content_type