acaiafa/opentsdb-cookbook

View on GitHub
Guardfile

Summary

Maintainability
Test Coverage
# More info at https://github.com/guard/guard#readme
guard 'rubocop' do
  watch(%r{^attributes/.+\.rb$})
  watch(%r{^providers/.+\.rb$})
  watch(%r{^recipes/.+\.rb$})
  watch(%r{^resources/.+\.rb$})
  watch(%r{^libraries/.+\.rb$})
  watch('metadata.rb')
end

guard :rspec, cmd: 'bundle exec rspec', all_on_start: false, notification: false do
  watch(%r{^(recipes|libraries|providers|resources)/(.+)\.rb$}) do |m|
    "test/spec/#{m[0]}/#{m[1]}_spec.rb"
  end
  watch('test/spec/spec_helper.rb')      { 'test/spec' }
end