2015-03-02 20:41:05 -05:00
|
|
|
desc 'Security check via brakeman'
|
|
|
|
task :brakeman do
|
2015-05-11 12:11:09 -04:00
|
|
|
# We get 0 warnings at level 'w3' but we would like to reach 'w2'. Merge
|
|
|
|
# requests are welcome!
|
2016-03-04 17:12:25 -05:00
|
|
|
if system(*%W(brakeman --no-progress --skip-files lib/backup/repository.rb -w3 -z))
|
2015-03-19 11:37:21 -04:00
|
|
|
puts 'Security check succeed'
|
2015-03-02 20:41:05 -05:00
|
|
|
else
|
|
|
|
puts 'Security check failed'
|
|
|
|
exit 1
|
|
|
|
end
|
|
|
|
end
|