forked from chef-cookbooks/chef-ingredient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Guardfile
24 lines (21 loc) · 789 Bytes
/
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
# More info at https://github.com/guard/guard#readme
# guard 'foodcritic', :cookbook_paths => '.', :cli => '-t ~FC023 -t ~FC005', :all_on_start => false do
# watch(/attributes\/.+\.rb$/)
# watch(/providers\/.+\.rb$/)
# watch(/recipes\/.+\.rb$/)
# watch(/resources\/.+\.rb$/)
# watch('metadata.rb')
# end
guard 'rubocop' do
watch(%r{attributes\/.+\.rb$})
watch(%r{providers\/.+\.rb$})
watch(%r{recipes\/.+\.rb$})
watch(%r{resources\/.+\.rb$})
watch('metadata.rb')
end
guard :rspec, cmd: 'chef exec /opt/chef-workstation/embedded/bin/rspec', all_on_start: false, notification: false do
watch(%r{^libraries\/(.+)\.rb$})
watch(%r{^spec\/(.+)_spec\.rb$})
watch(%r{^(recipes)\/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { 'spec' }
end