lib/qpush/server/launcher.rb in qpush-0.1.1 vs lib/qpush/server/launcher.rb in qpush-0.1.2

- old
+ new

@@ -10,10 +10,11 @@ # Parses commmand line options and starts the Manager object # def start start_message setup_options + require_jobs boot_manager end private @@ -34,9 +35,15 @@ end o.on('-h', '--help', 'Prints this help') { puts o && exit } end parser.parse!(@argv) + end + + def require_jobs + Dir[Dir.pwd + "#{QPush.config.jobs_path}/**/*.rb"].each do |file| + require file + end end def boot_manager manager = Manager.new(QPush.config.manager_options) manager.start