Sha256: 9612abffd140b48900db588519cea5d0d5cec8957266820e8b9d18d07e886922
Contents?: true
Size: 578 Bytes
Versions: 2
Compression:
Stored size: 578 Bytes
Contents
require 'colorize' require 'English' module SafePusher class ProntoRunner def call run_pronto exit_status = $CHILD_STATUS.exitstatus if exit_status != 0 warn 'Pronto found somme errors… ' \ 'Fix them before pushing to GitHub!'.red else puts 'No errors found by pronto, go for next step!'.green end exit_status end private def run_pronto system("bin/pronto run --exit-code -c #{base_branch}") end def base_branch SafePusher.configuration.base_branch end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
safe_pusher-0.4.0 | lib/safe_pusher/pronto_runner.rb |
safe_pusher-0.3.0 | lib/safe_pusher/pronto_runner.rb |