Class: Pact::MockService::ControlServer::MockServices

Inherits:
Rack::Cascade
  • Object
show all
Defined in:
lib/pact/mock_service/control_server/mock_services.rb

Instance Method Summary collapse

Instance Method Details

#add(app) ⇒ Object



9
10
11
12
# File 'lib/pact/mock_service/control_server/mock_services.rb', line 9

def add app
  mock_services << app
  super
end

#shutdownObject



14
15
16
# File 'lib/pact/mock_service/control_server/mock_services.rb', line 14

def shutdown
  mock_services.each(&:shutdown)
end