Sha256: d3f2f00d8f4ff574853b39a69dfa104be4daeb02899dc1255a07580a6d40476a
Contents?: true
Size: 566 Bytes
Versions: 5
Compression:
Stored size: 566 Bytes
Contents
module Pact module TaskHelper def failure_message redify( "\n* * * * * * * * * * * * * * * * * * *\n" + "Provider did not honour pact file.\nSee\n * #{Pact.configuration.log_path}\n * #{Pact.configuration.tmp_dir}\nfor logs and pact files." + "\n* * * * * * * * * * * * * * * * * * *\n\n" ) end def redify string "\e[31m#{string}\e[m" end def handle_verification_failure exit_status = yield if exit_status != 0 $stderr.puts failure_message fail end end end end
Version data entries
5 entries across 5 versions & 1 rubygems