Skip to content
mechamogera edited this page Jun 11, 2012 · 4 revisions

Guard-Shellを使ってみる

  1. gemインストール
gem install guard guard-shell
  1. Guardfile作成
guard init shell
  1. Guardfile編集
guard 'shell' do
  watch(/(.*).rb$/) {|m| `ruby #{m[0]}` }
end
  • 拡張子.rbのファイルを編集すると実行されるように

メモ

  • Gemfilesにguard、guard-spork、guard-test追加
  • bundle install
  • Guardfile作成
guard init spork
guard init test
  • Guardスタート
guard
Clone this wiki locally