<< | Index | >>
$ ruby jobs/rebuild_indices $ ruby jobs/rebuild_indices doctor_index
option is {:fi|:pi|:both}
# bin/admin ch.oddb> TextInfoPlugin.new(self).import_swissmedicinfo(:fi) ch.oddb> Updater.new(self).update_textinfo_swissmedicinfo({:target => :pi}) # Job $ ruby jobs/update_textinfo_swissmedicinfo --target=pi --reparse $ ruby jobs/update_textinfo_swissmedicinfo --target=both $ ruby jobs/update_textinfo_swissmedicinfo --target=fi #=> same without option
Job module does not allow to use OptionParser.
process: jobs/update_textinfo_swissmedicinfo init system init system: 6.458067802 setup drb-delegation /var/ch.oddb.org/log/job.pid is deleted /path/to/ruby/1.9.1/drb/drb.rb:736:in `rescue in block in open': druby://localhost:10000 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> (DRb::DRbConnError) from /path/to/ruby/1.9.1/drb/drb.rb:730:in `block in open' from /path/to/ruby/1.9.1/drb/drb.rb:729:in `each' from /path/to/ruby/1.9.1/drb/drb.rb:729:in `open' from /path/to/ruby/1.9.1/drb/drb.rb:1191:in `initialize'