lib/barista/rake_task.rb in barista-1.1.0 vs lib/barista/rake_task.rb in barista-1.2.0
- old
+ new
@@ -53,15 +53,11 @@
Barista.output_root = File.expand_path(@output_directory, Dir.pwd)
end
end
def check_availability
- if !Barista::Compiler.available?
- if Barista::Compiler.bin_path.nil?
- $stderr.puts "CoffeeScript doesn't appear to be installed on this system and you're not using an embedded compiler."
- else
- $stderr.puts "'#{Barista::Compiler.bin_path}' was unavailable."
- end
+ unless Barista::Compiler.available?
+ warn Barista::Compiler::UNAVAILABLE_MESSAGE
exit 1
end
end
end
\ No newline at end of file