Class Listen::Adapters::Linux
In: lib/listen/adapters/linux.rb
Parent: Adapter

Listener implementation for Linux `inotify`.

Methods

new   start   stop   usable?  

Constants

EVENTS = %w[recursive attrib create delete move close_write]   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 = <<-EOS.gsub(/^\s*/, '') Listen error: unable to monitor directories for changes. Please head to https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers for information on how to solve this issue. EOS .gsub(/^\s*/, '')   The message to show when the limit of inotify watchers is not enough

Public Class methods

Initializes the Adapter. See {Listen::Adapter#initialize} for more info.

Checks if the adapter is usable on the current OS.

@return [Boolean] whether usable or not

Public Instance methods

Starts the adapter.

@param [Boolean] blocking whether or not to block the current thread after starting

Stops the adapter.

[Validate]