From 6035e74f8824fb22ff0c39cea4da706fee985933 Mon Sep 17 00:00:00 2001 From: Rupak Ganguly Date: Tue, 17 Apr 2012 17:01:24 -0400 Subject: [PATCH] Add helper method for cdn public url for file. --- lib/fog/hp/models/storage/file.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/fog/hp/models/storage/file.rb b/lib/fog/hp/models/storage/file.rb index f47537e3f..573a8b48c 100644 --- a/lib/fog/hp/models/storage/file.rb +++ b/lib/fog/hp/models/storage/file.rb @@ -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