2015-03-02 20:41:05 -05:00
|
|
|
desc 'Security check via brakeman'
|
|
|
|
task :brakeman do
|
2015-03-02 21:11:50 -05:00
|
|
|
if system("brakeman --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
|