From 674ad7b78d21ae5a1bbfd09b48ed340aa38bc451 Mon Sep 17 00:00:00 2001 From: Cristian Rivera Date: Mon, 13 Jan 2014 14:03:04 -0500 Subject: [PATCH] Update config.rb for path_style --- lib/asset_sync/config.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/asset_sync/config.rb b/lib/asset_sync/config.rb index 1ffe41e1..b08a04f8 100644 --- a/lib/asset_sync/config.rb +++ b/lib/asset_sync/config.rb @@ -108,6 +108,10 @@ def google? def yml_exists? defined?(Rails.root) ? File.exists?(self.yml_path) : false end + + def path_style? + fog_directory.include?('.') + end def yml begin @@ -175,7 +179,8 @@ def fog_options if aws? options.merge!({ :aws_access_key_id => aws_access_key_id, - :aws_secret_access_key => aws_secret_access_key + :aws_secret_access_key => aws_secret_access_key, + :path_style => path_style? }) elsif rackspace? options.merge!({