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!({