class Pact::ProviderVerifier::CLI::Verify
Public Instance Methods
exit_on_failure?()
click to toggle source
# File lib/pact/provider_verifier/cli/verify.rb, line 73 def exit_on_failure? true end
exit_with_non_zero_status()
click to toggle source
# File lib/pact/provider_verifier/cli/verify.rb, line 69 def exit_with_non_zero_status exit 1 end
merged_urls(pact_urls_from_args)
click to toggle source
# File lib/pact/provider_verifier/cli/verify.rb, line 52 def merged_urls pact_urls_from_args from_opts = options.pact_urls ? options.pact_urls.split(',') : [] from_opts + pact_urls_from_args end
print_deprecation_warnings()
click to toggle source
# File lib/pact/provider_verifier/cli/verify.rb, line 57 def print_deprecation_warnings if options.pact_urls $stderr.puts "WARN: The --pact-urls option is deprecated. Please pass in a space separated list of URLs as the first arguments to the pact-provider-verifier command." end end
validate_verify()
click to toggle source
# File lib/pact/provider_verifier/cli/verify.rb, line 63 def validate_verify if options.pact_broker_base_url && (options.provider.nil? || options.provider == "") raise InvalidArgumentsError, "No value provided for required option '--provider'" end end
verify(*pact_urls)
click to toggle source
# File lib/pact/provider_verifier/cli/verify.rb, line 36 def verify(*pact_urls) validate_verify print_deprecation_warnings success = Pact::ProviderVerifier::App.call(merged_urls(pact_urls), options) exit_with_non_zero_status if !success && !options.ignore_failures end
version()
click to toggle source
# File lib/pact/provider_verifier/cli/verify.rb, line 46 def version require 'pact/provider_verifier/version' puts Pact::ProviderVerifier::VERSION end