public
Created

Simple guardfile

  • Download Gist
Guardfile
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
# 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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.