mkocher/soloist

View on GitHub
examples/Guardfile

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby

guard 'bundler' do
  watch('../Gemfile')
  watch('../soloist.gemspec')
end

guard 'shell' do
  watch('soloistrc') { system("../bin/soloist -r 192.168.6.66") }
  watch(%r{^cookbooks/(.+)\.rb$}) { system("unset RUBYOPT; bundle exec ../bin/soloist -r 192.168.6.66") }
  watch('Vagrantfile') { system("unset RUBYOPT; vagrant provision") }
  watch('script/bootstrap.sh') { system("unset RUBYOPT; vagrant provision") }
end