Concha:
#!/usr/bin/env bash
bundle exec brakeman -q -z > /dev/null
OUT=$?
if [ $OUT -eq 0 ]; then
echo "Ok"
else
echo "Error"
fi
Rubi:
# exec
%x[bundle exec brakeman -q -z > /dev/null]
# output
if $?.exitstatus == 0
puts "Ok"
else
puts "Error"
end