lib/vendor/fssm/support.rb in chriseppstein-compass-0.8.13 vs lib/vendor/fssm/support.rb in chriseppstein-compass-0.8.14
- old
+ new
@@ -1,18 +1,14 @@
module FSSM::Support
class << self
- # def backend
- # (mac? && carbon_core?) ? 'FSEvents' : 'Polling'
- # end
-
def backend
- 'Polling'
+ (mac? && carbon_core?) ? 'FSEvents' : 'Polling'
end
-
+
def mac?
@@mac ||= RUBY_PLATFORM =~ /darwin/i
end
-
+
def carbon_core?
@@carbon_core ||= begin
require 'osx/foundation'
OSX.require_framework '/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework'
true