class SafePusher::Client::Pronto
Public Instance Methods
lint()
click to toggle source
# File lib/safe_pusher/client/pronto.rb, line 4 def lint 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 Instance Methods
base_branch()
click to toggle source
# File lib/safe_pusher/client/pronto.rb, line 24 def base_branch SafePusher.configuration.base_branch end
run_pronto()
click to toggle source
# File lib/safe_pusher/client/pronto.rb, line 20 def run_pronto system("bin/pronto run --exit-code -c #{base_branch}") end