Class: Pact::StubService::CLI
- Inherits:
-
MockService::CLI::CustomThor
- Object
- Thor
- MockService::CLI::CustomThor
- Pact::StubService::CLI
- Defined in:
- lib/pact/stub_service/cli.rb
Instance Method Summary collapse
Instance Method Details
#service(*pactfiles) ⇒ Object
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/pact/stub_service/cli.rb', line 36 def service(*pactfiles) raise Thor::Error.new("Please provide an existing pact file to load") if pactfiles.empty? require 'pact/mock_service/run' .stub_pactfile_paths = pactfiles opts = Thor::CoreExt::HashWithIndifferentAccess.new opts.merge!() opts[:stub_pactfile_paths] = pactfiles opts[:pactfile_write_mode] = 'none' MockService::Run.(opts) end |
#version ⇒ Object
49 50 51 52 |
# File 'lib/pact/stub_service/cli.rb', line 49 def version require 'pact/mock_service/version.rb' puts Pact::MockService::VERSION end |