Class: Pact::ProxyVerificationTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/pact/provider/proxy/tasks/proxy_verification_task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) {|_self| ... } ⇒ ProxyVerificationTask

Returns a new instance of ProxyVerificationTask.

Yields:

  • (_self)

Yield Parameters:


8
9
10
11
12
13
14
15
16
# File 'lib/pact/provider/proxy/tasks/proxy_verification_task.rb', line 8

def initialize(name)
  @pact_spec_configs = []
  @provider_base_url = nil
  @name = name
  @publish_verification_results = false
  @provider_app_version = nil
  yield self
  rake_task
end

Instance Attribute Details

#pact_spec_configsObject (readonly)

Returns the value of attribute pact_spec_configs


6
7
8
# File 'lib/pact/provider/proxy/tasks/proxy_verification_task.rb', line 6

def pact_spec_configs
  @pact_spec_configs
end

Instance Method Details

#pact_url(uri, options = {}) ⇒ Object Also known as: uri


19
20
21
# File 'lib/pact/provider/proxy/tasks/proxy_verification_task.rb', line 19

def pact_url(uri, options = {})
  @pact_spec_configs << {uri: uri, pact_helper: options[:pact_helper]}
end

#provider_app_version(provider_app_version) ⇒ Object


30
31
32
# File 'lib/pact/provider/proxy/tasks/proxy_verification_task.rb', line 30

def provider_app_version provider_app_version
  @provider_app_version = provider_app_version
end

#provider_base_url(url) ⇒ Object


26
27
28
# File 'lib/pact/provider/proxy/tasks/proxy_verification_task.rb', line 26

def provider_base_url url
  @provider_base_url = url
end

#publish_verification_results(publish_verification_results) ⇒ Object


34
35
36
# File 'lib/pact/provider/proxy/tasks/proxy_verification_task.rb', line 34

def publish_verification_results publish_verification_results
  @publish_verification_results = publish_verification_results
end