Skip to content

Instantly share code, notes, and snippets.

@DougHall
Created October 28, 2011 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DougHall/1322498 to your computer and use it in GitHub Desktop.
Save DougHall/1322498 to your computer and use it in GitHub Desktop.
Simple guardfile
# 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