Created
February 12, 2012 16:15
-
-
Save johnbintz/1809410 to your computer and use it in GitHub Desktop.
For the lazy, how to Guard::Guard your own Guard
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
# Guardfile | |
require 'guard/guard' | |
class ::Guard::JohnIsAwesome < ::Guard::Guard | |
def start | |
puts "Whoa a guard." | |
end | |
def run_all | |
puts "Running all the codes" | |
end | |
def run_on_change(paths = []) | |
puts "Only running these: #{paths.inspect}" | |
end | |
end | |
guard 'john-is-awesome' do | |
watch(%r{^cats/dogs/.*}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment