Created
November 30, 2011 00:33
-
-
Save rspeicher/1407358 to your computer and use it in GitHub Desktop.
Guardfile for auto-reloading Python koans
This file contains hidden or 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
| require 'guard/guard' | |
| module ::Guard | |
| class Inline < ::Guard::Guard | |
| def run_all | |
| system "sh run.sh" | |
| end | |
| def run_on_change(paths) | |
| system "sh run.sh" | |
| end | |
| end | |
| end | |
| guard 'inline' do | |
| watch(%r{^koans/.*\.py$}) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment