测试 guard 配置文件 Guardfile 里面的 watch 为什么以^开头

hunter · April 14, 2012 · Last by hunter replied at April 14, 2012 · 2813 hits

watch(%r{^app/(.+).rb$})

很明显是想匹配一个 app 开头的文件名,但是文件名称是全路径,如何匹配^

不甚明白。

如果我想监控 app 父目录里面的东西怎么办呢 我给了全路径都不工作,唉 如 watch("/home/myuser/vob/railsapp/app/views/rapp/home/root.html.erb")

这玩意似乎写死了只能监控 Guardfile 所在的目录里面的东东。

You need to Sign in before reply, if you don't have an account, please Sign up first.