Permalink
Browse files

Logger passing

  • Loading branch information...
1 parent b14d72d commit 7189e4d20a19b67fca6a3664816c2e857ba8c8d3 @fidothe fidothe committed Apr 14, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/cdn_helpers.rb
  2. +1 −1 lib/cdn_helpers/cdn_helpers.rake
View
@@ -30,7 +30,7 @@ def self.hash_file(path, public_root_path, logger)
end
module CssRewriter
- def self.rewrite_css_file(css_file_path, public_root_path, url_prefix = '/')
+ def self.rewrite_css_file(logger, css_file_path, public_root_path, url_prefix = '/')
css_file = File.open(css_file_path)
output = process_css_file(css_file, css_file_path, public_root_path, url_prefix)
File.open(css_file_path, 'w') { |f| f.write(output) }
@@ -12,7 +12,7 @@ namespace :cdn do
FileList['public/**/*.css'].each do |css_file_path|
css_file_path = Pathname.new(css_file_path).realpath
public_path = Rails.root.join('public')
- CdnHelpers::CssRewriter.rewrite_css_file(css_file_path, public_path, logger)
+ CdnHelpers::CssRewriter.rewrite_css_file(logger, css_file_path, public_path)
end
rescue Errno::ENOENT
end

0 comments on commit 7189e4d

Please sign in to comment.