lib/coffeescript.rb in capucine-0.0.6 vs lib/coffeescript.rb in capucine-0.0.7

- old
+ new

@@ -63,10 +63,15 @@ def self.run_once file = nil settings = Capucine.settings unless file + files = Dir.glob(File.join settings.working_dir, settings.config['coffeescript_output_dir'], '*') + FileUtils.rm_r files + self.compile_dir settings.config['coffeescript_files_dir'], settings.config['coffeescript_output_dir'] + + else self.compile_dir file, settings.config['coffeescript_output_dir'] end puts "[coffee] - Compiled"