Class: Pactflow::Client::ProviderContracts::Publish

Inherits:
PactBroker::Client::BaseCommand show all
Defined in:
lib/pactflow/client/provider_contracts/publish.rb

Constant Summary collapse

PUBLISH_RELATION =
"pf:publish-provider-contract"

Instance Method Summary collapse

Methods inherited from PactBroker::Client::BaseCommand

call, #call

Methods included from PactBroker::Client::HalClientMethods

#create_entry_point, #create_http_client, #create_index_entry_point, #index_entry_point, #index_resource, #is_pactflow?, #pact_broker_name

Constructor Details

#initialize(params, options, pact_broker_client_options) ⇒ Publish

Returns a new instance of Publish.



14
15
16
17
18
19
20
21
22
23
# File 'lib/pactflow/client/provider_contracts/publish.rb', line 14

def initialize(params, options, pact_broker_client_options)
  super
  @provider_name = params[:provider_name]
  @provider_version_number = params[:provider_version_number]
  @branch_name = params[:branch_name]
  @tags = params[:tags] || []
  @build_url = params[:build_url]
  @contract = params[:contract]
  @verification_results = params[:verification_results]
end