Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Simple guardfile

View Guardfile
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.