reload() a guard from watch()

20 views
Skip to first unread message

Suraj Kurapati

unread,
Oct 18, 2012, 10:01:05 PM10/18/12
to guar...@googlegroups.com
Hello,

How can I invoke the reload() method of a certain guard from inside a watch()?

guard :tork do
  watch(%r{(test|spec)/\1_helper\.rb$}) { reload :tork }  # <== call reload() on Guard::Tork
end

Thanks for your consideration.
Reply all
Reply to author
Forward
0 new messages