Class: Dirwatch::Console

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

Instance Method Summary collapse

Instance Method Details

#run(args) ⇒ Object



47
48
49
50
51
52
53
54
55
# File 'lib/dirwatch/executors.rb', line 47

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