angels 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/angels/version.rb +1 -1
- data/lib/angels.rb +2 -2
- metadata +2 -2
data/lib/angels/version.rb
CHANGED
data/lib/angels.rb
CHANGED
@@ -12,7 +12,7 @@ module Angels
|
|
12
12
|
:rails_root => File.join(caller_dir, '..'),
|
13
13
|
:load_rails => false,
|
14
14
|
:pid_dir => File.join(caller_dir, '..', 'tmp'),
|
15
|
-
:default_env => 'production'
|
15
|
+
:default_env => 'production',
|
16
16
|
}.merge(opts)
|
17
17
|
|
18
18
|
Daemons.run_proc(name, :dir_mode => :normal, :dir => opts[:pid_dir]) do
|
@@ -27,7 +27,7 @@ module Angels
|
|
27
27
|
sleep opts[:loop_sleep]
|
28
28
|
rescue SignalException, Interrupt; SystemExit; Process.exit
|
29
29
|
rescue => e
|
30
|
-
|
30
|
+
opts[:exception_handler].try(:call, e)
|
31
31
|
raise e unless opts[:retry]
|
32
32
|
sleep opts[:retry_sleep]
|
33
33
|
end
|