Brakeman integration with deploy tools
Shell:
#!/usr/bin/env bash
bundle exec brakeman -q -z > /dev/null
OUT=$?
if [ $OUT -eq 0 ]; then
echo "Ok"
else
echo "Error"
fi
Ruby:
# exec
%x[bundle exec brakeman -q -z > /dev/null]
# output
if $?.exitstatus == 0
puts "Ok"
else
puts "Error"
end
Written by Yuri Artemev
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#