1
0
Fork 0
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:
Mike Perham 2012-02-09 21:56:14 -08:00
parent f89eedf326
commit c2877d690f

View file

@ -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)