log removal actions in the compiler output.
This commit is contained in:
parent
437842caa1
commit
c069babe76
@ -65,7 +65,10 @@ module Compass
|
|||||||
end
|
end
|
||||||
|
|
||||||
def remove(file_name)
|
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
|
File.unlink file_name
|
||||||
log_action :remove, basename(file_name), options
|
log_action :remove, basename(file_name), options
|
||||||
end
|
end
|
||||||
|
@ -54,6 +54,7 @@ module Compass
|
|||||||
compiler_opts = {:sass => Compass.sass_engine_options}
|
compiler_opts = {:sass => Compass.sass_engine_options}
|
||||||
compiler_opts.merge!(options)
|
compiler_opts.merge!(options)
|
||||||
compiler_opts[:sass_files] = explicit_sass_files
|
compiler_opts[:sass_files] = explicit_sass_files
|
||||||
|
compiler_opts[:cache_location] = determine_cache_location
|
||||||
compiler_opts
|
compiler_opts
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -75,9 +75,9 @@ module Compass
|
|||||||
end
|
end
|
||||||
|
|
||||||
def clean!
|
def clean!
|
||||||
FileUtils.rm_rf options[:cache_location]
|
remove options[:cache_location]
|
||||||
css_files.each do |css_file|
|
css_files.each do |css_file|
|
||||||
FileUtils.rm_f css_file
|
remove css_file
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user