Class: Dirwatch::Console

Inherits:
Executor show all
Defined in:
lib/dirwatch/executors.rb

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



51
52
53
54
55
56
57
58
59
# File 'lib/dirwatch/executors.rb', line 51

def run args
  status = catch :exit do
    super
  end
  exit status || 0
rescue Dirwatch::UserFriendlyError => e
  $stderr.puts e.user_friendly_message
  exit 1
end