Skip to content

Instantly share code, notes, and snippets.

@rspeicher
Created November 30, 2011 00:33
Show Gist options
  • Select an option

  • Save rspeicher/1407358 to your computer and use it in GitHub Desktop.

Select an option

Save rspeicher/1407358 to your computer and use it in GitHub Desktop.
Guardfile for auto-reloading Python koans
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