Class: Filewatcher::CLI::Command
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Filewatcher::CLI::Command
- Defined in:
- lib/filewatcher/cli/command.rb,
lib/filewatcher/cli/command/options.rb
Overview
Options for CLI command
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/filewatcher/cli/command.rb', line 33 def execute @child_pid = nil initialize_filewatcher print_if_list Process.daemon(true, true) if daemon? watch rescue SystemExit, Interrupt @filewatcher.finalize end |