Class: Pact::Provider::Configuration::PactVerificationFromBroker

Inherits:
Object
  • Object
show all
Extended by:
DSL
Defined in:
lib/pact/provider/configuration/pact_verification_from_broker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider_name, provider_version_branch, provider_version_tags) ⇒ PactVerificationFromBroker

Returns a new instance of PactVerificationFromBroker.



20
21
22
23
24
25
26
27
28
29
30
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 20

def initialize(provider_name, provider_version_branch, provider_version_tags)
  @_provider_name = provider_name
  @_provider_version_branch = provider_version_branch
  @_provider_version_tags = provider_version_tags
  @_consumer_version_tags = []
  @_consumer_version_selectors = []
  @_enable_pending = false
  @_include_wip_pacts_since = nil
  @_verbose = false
  @_fail_if_no_pacts_found = true # CLI defaults to false, unfortunately for consistency
end

Instance Attribute Details

#_basic_auth_optionsObject

If user declares a variable with the same name as one of these attributes in parent scope, it will clash with these ones, so put an underscore in front of the name to be safer.



18
19
20
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 18

def _basic_auth_options
  @_basic_auth_options
end

#_consumer_version_selectorsObject

If user declares a variable with the same name as one of these attributes in parent scope, it will clash with these ones, so put an underscore in front of the name to be safer.



18
19
20
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 18

def _consumer_version_selectors
  @_consumer_version_selectors
end

#_consumer_version_tagsObject

If user declares a variable with the same name as one of these attributes in parent scope, it will clash with these ones, so put an underscore in front of the name to be safer.



18
19
20
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 18

def _consumer_version_tags
  @_consumer_version_tags
end

#_enable_pendingObject

If user declares a variable with the same name as one of these attributes in parent scope, it will clash with these ones, so put an underscore in front of the name to be safer.



18
19
20
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 18

def _enable_pending
  @_enable_pending
end

#_fail_if_no_pacts_foundObject

If user declares a variable with the same name as one of these attributes in parent scope, it will clash with these ones, so put an underscore in front of the name to be safer.



18
19
20
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 18

def _fail_if_no_pacts_found
  @_fail_if_no_pacts_found
end

#_include_wip_pacts_sinceObject

If user declares a variable with the same name as one of these attributes in parent scope, it will clash with these ones, so put an underscore in front of the name to be safer.



18
19
20
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 18

def _include_wip_pacts_since
  @_include_wip_pacts_since
end

#_pact_broker_base_urlObject

If user declares a variable with the same name as one of these attributes in parent scope, it will clash with these ones, so put an underscore in front of the name to be safer.



18
19
20
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 18

def _pact_broker_base_url
  @_pact_broker_base_url
end

#_provider_nameObject

If user declares a variable with the same name as one of these attributes in parent scope, it will clash with these ones, so put an underscore in front of the name to be safer.



18
19
20
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 18

def _provider_name
  @_provider_name
end

#_provider_version_branchObject

If user declares a variable with the same name as one of these attributes in parent scope, it will clash with these ones, so put an underscore in front of the name to be safer.



18
19
20
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 18

def _provider_version_branch
  @_provider_version_branch
end

#_provider_version_tagsObject

If user declares a variable with the same name as one of these attributes in parent scope, it will clash with these ones, so put an underscore in front of the name to be safer.



18
19
20
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 18

def _provider_version_tags
  @_provider_version_tags
end

#_verboseObject

If user declares a variable with the same name as one of these attributes in parent scope, it will clash with these ones, so put an underscore in front of the name to be safer.



18
19
20
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 18

def _verbose
  @_verbose
end

Instance Method Details

#finalizeObject



68
69
70
71
# File 'lib/pact/provider/configuration/pact_verification_from_broker.rb', line 68

def finalize
  validate
  create_pact_verification
end