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:
parent
33a0227713
commit
6035e74f88
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue