debian-mirror-gitlab/lib/tasks/brakeman.rake

10 lines
217 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
desc 'Security check via brakeman'
task :brakeman do
if system("brakeman --skip-files lib/backup/repository.rb -w3 -z")
puts 'Security check succeed'
else
puts 'Security check failed'
exit 1
end
end