tridentは、
tail -f log/development.logautotestscript/console
を一枚の端末上で同時に実行するRailsプラグインでした(trident: tail -f, autotest and script/console at once参照)

ほぼ全てのRailsプロダクトに入れていたのですが、
毎回プラグインインストールするのが面倒になってきたので、
Gem化してGitHub上でリリースしました。

使い方ですが、RAILS_ROOTで以下のコマンドを実行します。

pre>>
% trident
<<--

すると色々立ち上がって script/console のプロンプトが出ます。
autotestのCtrl+Cをする代わりに、以下のコマンドを実行します。

ruby>>

Trident.reload
<<--

終了する時はexitでOKです。

See Also

posted by genki genki on Mon 14 Jul 2008 at 14:05 with 0 comments