# File lib/fssm/support.rb, line 26 def backend @@backend ||= usable_backend end
# File lib/fssm/support.rb, line 46 def carbon_core? begin require 'osx/foundation' OSX.require_framework '/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework' true rescue LoadError false end end
# File lib/fssm/support.rb, line 30 def jruby? defined?(JRUBY_VERSION) end
# File lib/fssm/support.rb, line 42 def linux? RbConfig::CONFIG['target_os'] =~ /linux/ end
# File lib/fssm/support.rb, line 38 def lion? RbConfig::CONFIG['target_os'] =~ /darwin11/ end
# File lib/fssm/support.rb, line 34 def mac? RbConfig::CONFIG['target_os'] =~ /darwin/ end
# File lib/fssm/support.rb, line 18 def optimal_backend_dependency return case when mac? then ['rb-fsevent', '>= 0.4.3.1'] when linux? then ['rb-inotify', '>= 0.8.8'] else [nil, nil] end end
# File lib/fssm/support.rb, line 56 def rb_fsevent? begin require 'rb-fsevent' defined?(FSEvent::VERSION) ? FSEvent::VERSION.to_f >= 0.4 : false rescue LoadError false end end
# File lib/fssm/support.rb, line 65 def rb_inotify? begin require 'rb-inotify' if defined?(INotify::VERSION) version = INotify::VERSION version[0] > 0 || version[1] >= 6 end rescue LoadError false end end
Generated with the Darkfish Rdoc Generator 2.