Sha256: e2604d9af95060c0a2707a99aea9488274e0190097a2a8b103017a3e068d146b
Contents?: true
Size: 517 Bytes
Versions: 6
Compression:
Stored size: 517 Bytes
Contents
module FSSM::Support class << self # def backend # (mac? && carbon_core?) ? 'FSEvents' : 'Polling' # end def backend '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 rescue LoadError false end end end end
Version data entries
6 entries across 6 versions & 2 rubygems