From 45678c320758ebe9d2e4b12577bb4cecf2392c68 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 13 Mar 2020 11:11:56 +1100 Subject: [PATCH] feat: expose stub-service --- lib/pact/cli.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/pact/cli.rb b/lib/pact/cli.rb index cc62cf5..4fe97f6 100644 --- a/lib/pact/cli.rb +++ b/lib/pact/cli.rb @@ -29,6 +29,12 @@ def mock_service ::Pact::MockService::CLI.start(process_argv("mock-service")) end + desc 'stub-service', 'Run a Pact stub service' + def stub_service + require 'pact/stub_service/cli' + Pact::StubService::CLI.start(process_argv("stub-service")) + end + desc 'broker', 'Interact with a Pact Broker' def broker ::PactBroker::Client::CLI::Broker.start(process_argv("broker"))