moved config check to perform

This commit is contained in:
Scott Davis 2011-05-26 15:00:54 -04:00
parent d080fdddb7
commit bcc3000860

View File

@ -33,11 +33,11 @@ module Compass
def perform
compiler = new_compiler_instance
check_for_sass_files!(compiler)
compiler.clean! if compiler.new_config?
compiler.run
end
def check_for_sass_files!(compiler)
compiler.clean! if compiler.new_config?
if compiler.sass_files.empty? && !dry_run?
message = "Nothing to compile. If you're trying to start a new project, you have left off the directory argument.\n"
message << "Run \"compass -h\" to get help."