Sha256: 4aecd6cef8085d73669cf0546a073a64a61d5035ee754a23b1b9df03a03f95ce
Contents?: true
Size: 516 Bytes
Versions: 4
Compression:
Stored size: 516 Bytes
Contents
module PactTaskHelper 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pact-1.0.9 | lib/pact/pact_task_helper.rb |
pact-1.0.8 | lib/pact/pact_task_helper.rb |
pact-1.0.7 | lib/pact/pact_task_helper.rb |
pact-1.0.6 | lib/pact/pact_task_helper.rb |