Class: Pact::App
- Inherits:
-
Thor
- Object
- Thor
- Pact::App
- Defined in:
- lib/pact/app.rb
Instance Method Summary collapse
Instance Method Details
#service ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/pact/app.rb', line 15 def service = {} if [:log] log = File.open([:log], 'w') log.sync = true [:log_file] = log end port = [:port] || FindAPort.available_port mock_service = Consumer::MockService.new() Thin::Server.start("0.0.0.0", port, mock_service) end |