Skip to content

Commit

Permalink
Rescue LoadError of daemons and raise a message
Browse files Browse the repository at this point in the history
If you want to daemonize the delayed job process, add daemons to your
Gemfile.
  • Loading branch information
bryckbost committed Dec 13, 2011
1 parent 46533d6 commit 142c591
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/delayed/command.rb
@@ -1,4 +1,8 @@
require 'daemons'
begin
require 'daemons'
rescue LoadError
raise "You need to add gem 'daemons' to your Gemfile if you wish to use it."
end
require 'optparse'

module Delayed
Expand Down

0 comments on commit 142c591

Please sign in to comment.