Created
October 28, 2011 15:11
-
-
Save DougHall/1322498 to your computer and use it in GitHub Desktop.
Simple guardfile
This file contains 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
# A sample Guardfile | |
# More info at https://github.com/guard/guard#readme | |
require 'guard/guard' | |
module ::Guard | |
class CalGuard < ::Guard::Guard | |
def print_me(paths) | |
paths.each do |filepath| | |
puts filepath | |
end | |
end | |
def run_on_change(paths) | |
print_me(paths) | |
end | |
def run_on_deletion(paths) | |
print_me(paths) | |
end | |
end | |
end | |
guard 'calguard' do | |
ignore_paths 'wi' | |
watch %r{^.+\.ics$} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment