In ~/prison
, you put the Guardfile
that describe which files to watch for changes and what to execute once a file is modified.
guard 'shell' do
watch(%r{^.+\.txt$}) { |m| `echo #{File.join(::Guard.listener.directory, m[0])}` }
end
In ~/watch_from_here
, you put the Gemfile
that list the guards you want to use.