Class: Pact::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/configuration.rb

Defined Under Namespace

Classes: GlobalProviderConfigurationError

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#after_provider_state_procObject (readonly)

Returns the value of attribute after_provider_state_proc.



5
6
7
# File 'lib/pact/configuration.rb', line 5

def after_provider_state_proc
  @after_provider_state_proc
end

#before_provider_state_procObject (readonly)

Returns the value of attribute before_provider_state_proc.



5
6
7
# File 'lib/pact/configuration.rb', line 5

def before_provider_state_proc
  @before_provider_state_proc
end

Instance Method Details

#after_provider_state_teardown(&block) ⇒ Object



15
16
17
18
19
# File 'lib/pact/configuration.rb', line 15

def after_provider_state_teardown(&block)
  raise GlobalProviderConfigurationError, 'no block given' unless block

  @after_provider_state_proc = block
end

#before_provider_state_setup(&block) ⇒ Object



9
10
11
12
13
# File 'lib/pact/configuration.rb', line 9

def before_provider_state_setup(&block)
  raise GlobalProviderConfigurationError, 'no block given' unless block

  @before_provider_state_proc = block
end