mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Tweaks to require validation
This commit is contained in:
parent
f89eedf326
commit
c2877d690f
1 changed files with 3 additions and 3 deletions
|
@ -60,11 +60,11 @@ module Sidekiq
|
|||
|
||||
$DEBUG = @options[:verbose]
|
||||
|
||||
if !File.exist?(@options[:require]) &&
|
||||
!File.exist?("#{@options[:require]}/config/application.rb")
|
||||
if !File.exist?(@options[:require]) ||
|
||||
(File.directory?(@options[:require]) && !File.exist?("#{@options[:require]}/config/application.rb"))
|
||||
log "=================================================================="
|
||||
log " Please point sidekiq to a Rails 3 application or a Ruby file "
|
||||
log " to load your worker classes."
|
||||
log " to load your worker classes with -r [DIR|FILE]."
|
||||
log "=================================================================="
|
||||
log @parser
|
||||
exit(1)
|
||||
|
|
Loading…
Add table
Reference in a new issue