lib/barista/compiler.rb in barista-0.4.0 vs lib/barista/compiler.rb in barista-0.4.1

- old
+ new

@@ -5,10 +5,10 @@ class << self; attr_accessor :bin_path; end self.bin_path ||= "coffee" def self.available? - @coffee_available ||= system("command -v '#{self.bin_path}' >/dev/null 2>&1") + @coffee_available ||= system("which '#{self.bin_path}' >/dev/null 2>&1") end def self.check_availability!(silence = false) available?.tap do |available| if Barista.exception_on_error? && !silence