lib/pact/provider/proxy/task_helper.rb in pact-provider-proxy-2.0.0 vs lib/pact/provider/proxy/task_helper.rb in pact-provider-proxy-2.1.0
- old
+ new
@@ -21,9 +21,12 @@
command_parts = []
command_parts << FileUtils::RUBY
command_parts << "-S pact verify"
command_parts << "-h" << (pact_helper.end_with?(".rb") ? pact_helper : pact_helper + ".rb")
(command_parts << "-p" << pact_uri) if pact_uri
+ command_parts << "--description #{Shellwords.escape(ENV['PACT_DESCRIPTION'])}" if ENV['PACT_DESCRIPTION']
+ command_parts << "--provider-state #{Shellwords.escape(ENV['PACT_PROVIDER_STATE'])}" if ENV['PACT_PROVIDER_STATE']
+ command_parts << "--backtrace" if ENV['BACKTRACE'] == 'true'
command_parts.flatten.join(" ")
end
def execute_cmd command
system(command) ? 0 : 1