log removal actions in the compiler output.

This commit is contained in:
Chris Eppstein 2011-06-11 21:54:12 -07:00
parent 437842caa1
commit c069babe76
3 changed files with 7 additions and 3 deletions

View File

@ -65,7 +65,10 @@ module Compass
end
def remove(file_name)
if File.exists?(file_name)
if File.directory?(file_name)
FileUtils.rm_rf file_name
log_action :remove, basename(file_name)+"/", options
elsif File.exists?(file_name)
File.unlink file_name
log_action :remove, basename(file_name), options
end

View File

@ -54,6 +54,7 @@ module Compass
compiler_opts = {:sass => Compass.sass_engine_options}
compiler_opts.merge!(options)
compiler_opts[:sass_files] = explicit_sass_files
compiler_opts[:cache_location] = determine_cache_location
compiler_opts
end

View File

@ -75,9 +75,9 @@ module Compass
end
def clean!
FileUtils.rm_rf options[:cache_location]
remove options[:cache_location]
css_files.each do |css_file|
FileUtils.rm_f css_file
remove css_file
end
end