lib/barista/tasks/barista.rake in barista-1.0.0 vs lib/barista/tasks/barista.rake in barista-1.1.0.pre1

- old
+ new

@@ -1,12 +1,7 @@ -namespace :barista do +require 'barista/rake_task' - desc "Compiles coffeescripts from app/coffeescripts into public/javascripts" - task :brew => :environment do - if !Barista::Compiler.available? - $stderr.puts "'#{Barista::Compiler.bin_path}' was unavailable." - exit 1 - end - Barista.compile_all! true, false - end - +Barista::RakeTask.new do |t| + t.namespace = :barista + t.task_name = :brew + t.rails = true end