wycats / thor

A scripting framework that replaces rake and sake

This URL has Read+Write access

thor / .autotest
100644 7 lines (7 sloc) 0.324 kb
1
2
3
4
5
6
7
Autotest.add_hook :initialize do |at|
  at.clear_mappings
  at.add_exception(/\.git/)
  at.add_mapping(%r{^spec/.*_spec}) {|filename,_| at.files_matching %r{#{filename}}}
  at.add_mapping(%r{^bin/thor}) {|_,_| at.files_matching %r{spec/thor_runner_spec}}
  at.add_mapping(%r{}) {|_,_| at.files_matching %r{spec/.*_spec}}
end