BackgroundDRbに再挑戦
netbeansでのbackgroundrbの使用手順を参考にする。
- AptanaStudioを終了する
- http://rubyforge.org/projects/backgroundrb/からプラグインをダウンロードする(Dec 20,2007で止まっている?)
- #{RAILS_ROOT}\vendor\pluginsにDLして展開したフォルダをコピー
- AptanaStudio起動、Rubyエクスプローラで#{RAILS_ROOT}\vendor\pluginsを選択して[F5]キー
- Rakeタスクビューに「タスク:backgroundrb:setup」が追加されている。パラメータ無しで「実行」
rake backgroundrb:setup Copying backgroundrb.yml config file to C:/Aptana IDE Beta/roommgr08/config/backgroundrb.yml Copying backgroundrb script to C:/Aptana IDE Beta/roommgr08/script/backgroundrb Creating C:/Aptana IDE Beta/roommgr08/lib/workers Copying Worker Test helper file C:/Aptana IDE Beta/roommgr08/test/bdrb_test_helper.rb
ここから先は「ひげろぐhttp://brass.to/blog/backgroundrb.html」を参考にする。
ワーカー(worker)の作成
>script/generate worker canonlpr :0:Warning: Gem::SourceIndex#search support for Regexp patterns is deprecated exists lib/workers/ create lib/workers/canonlpr_worker.rb >
できあがった
#{RAILS_ROOT}/lib/workers/canonlpr_worker.rb class CanonlprWorker < BackgrounDRb::MetaWorker set_worker_name :canonlpr_worker def create(args = nil) # this method is called, when worker is loaded for the first time end end
C:\Aptana IDE Beta\roommgr08>ruby script/backgroundrb start script/backgroundrb:26:in `fork': the fork() function is unimplemented on this m achine (NotImplementedError) from script/backgroundrb:26
あれ?
調べ回ったら、悲しい結果を見つけた。
http://gnufied.org/2007/12/20/backgroundrb-10-released/
古いバージョンを探すしかないのか・・・?