Created
February 16, 2012 04:01
-
-
Save asonas/1841858 to your computer and use it in GitHub Desktop.
watchrもうそう
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
watchr watchr.rb | |
watchr.rbでファイルを取得してrake spec hogehoge.rbとする | |
いめーじこんなかんじ。 | |
watch('(.*).rb') { |f| run("echo #{f[0]}") } |
if File.exist?(file_path) run file_path end
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ファイルの存在とか確かめないとだめっぽいきがする
使えそう。
http://miyamae.github.com/rubydoc-ja/1.9.2/#!/method/-rake=3a=3a-file-list/i/gsub.html