Class: SafePusher::ProntoRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/safe_pusher/pronto_runner.rb

Instance Method Summary collapse

Instance Method Details

#callObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/safe_pusher/pronto_runner.rb', line 6

def call
  run_pronto
  exit_status = $CHILD_STATUS.exitstatus

  if exit_status != 0
    warn 'Pronto found somme errors... '\
         'Fix them before pushing to master!'.red
  else
    puts 'No errors found by pronto, go for next step!'.green
  end

  exit_status
end