Skip to content

Commit 9264a87

Browse files
committed
feat: pact-stub-service log level cli opt
1 parent 8d1de21 commit 9264a87

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/pact/stub_service/cli.rb

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class CLI < Pact::MockService::CLI::CustomThor
2727
method_option :port, aliases: "-p", desc: "Port on which to run the service"
2828
method_option :host, aliases: "-h", desc: "Host on which to bind the service", default: 'localhost'
2929
method_option :log, aliases: "-l", desc: "File to which to log output"
30+
method_option :log_level, desc: "Log level. Options are DEBUG INFO WARN ERROR", default: "DEBUG"
3031
method_option :cors, aliases: "-o", desc: "Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses"
3132
method_option :ssl, desc: "Use a self-signed SSL cert to run the service over HTTPS", type: :boolean, default: false
3233
method_option :sslcert, desc: "Specify the path to the SSL cert to use when running the service over HTTPS"

tasks/package.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def create_package(version, target, os_type = :unix)
8484
end
8585

8686
sh "cp -pR build/vendor #{package_dir}/lib/"
87-
sh "cp pact-mock-service.gemspec Gemfile Gemfile.lock #{package_dir}/lib/vendor/"
87+
sh "cp pact-mock_service.gemspec Gemfile Gemfile.lock #{package_dir}/lib/vendor/"
8888
sh "mkdir #{package_dir}/lib/vendor/.bundle"
8989
sh "cp packaging/bundler-config #{package_dir}/lib/vendor/.bundle/config"
9090
if !ENV['DIR_ONLY']

0 commit comments

Comments
 (0)