moved config check to perform
This commit is contained in:
parent
d080fdddb7
commit
bcc3000860
@ -33,11 +33,11 @@ module Compass
|
|||||||
def perform
|
def perform
|
||||||
compiler = new_compiler_instance
|
compiler = new_compiler_instance
|
||||||
check_for_sass_files!(compiler)
|
check_for_sass_files!(compiler)
|
||||||
|
compiler.clean! if compiler.new_config?
|
||||||
compiler.run
|
compiler.run
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_for_sass_files!(compiler)
|
def check_for_sass_files!(compiler)
|
||||||
compiler.clean! if compiler.new_config?
|
|
||||||
if compiler.sass_files.empty? && !dry_run?
|
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 = "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."
|
message << "Run \"compass -h\" to get help."
|
||||||
|
Loading…
Reference in New Issue
Block a user