Listen::Adapters::Linux

Listener implementation for Linux `inotify`.

Constants

EVENTS

Watched inotify events

@see www.tin.org/bin/man.cgi?section=7&topic=inotify @see github.com/nex3/rb-inotify/blob/master/lib/rb-inotify/notifier.rb#L99-L177

INOTIFY_LIMIT_MESSAGE

The message to show when the limit of inotify watchers is not enough

Public Class Methods

adapter_gem() click to toggle source
# File lib/listen/adapters/linux.rb, line 24
def self.adapter_gem; 'rb-inotify'; end
new(directories, options = {}, &callback) click to toggle source

Initializes the Adapter.

@see Listen::Adapter#initialize

# File lib/listen/adapters/linux.rb, line 30
def initialize(directories, options = {}, &callback)
  super
rescue Errno::ENOSPC
  abort(INOTIFY_LIMIT_MESSAGE)
end
target_os_regex() click to toggle source
# File lib/listen/adapters/linux.rb, line 23
def self.target_os_regex; /linux/; end

[Validate]

Generated with the Darkfish Rdoc Generator 2.