Skip to content

Commit

Permalink
feat: pact-stub-service log level cli opt
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed Apr 30, 2019
1 parent 8d1de21 commit 9264a87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/pact/stub_service/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class CLI < Pact::MockService::CLI::CustomThor
method_option :port, aliases: "-p", desc: "Port on which to run the service"
method_option :host, aliases: "-h", desc: "Host on which to bind the service", default: 'localhost'
method_option :log, aliases: "-l", desc: "File to which to log output"
method_option :log_level, desc: "Log level. Options are DEBUG INFO WARN ERROR", default: "DEBUG"
method_option :cors, aliases: "-o", desc: "Support browser security in tests by responding to OPTIONS requests and adding CORS headers to mocked responses"
method_option :ssl, desc: "Use a self-signed SSL cert to run the service over HTTPS", type: :boolean, default: false
method_option :sslcert, desc: "Specify the path to the SSL cert to use when running the service over HTTPS"
Expand Down
2 changes: 1 addition & 1 deletion tasks/package.rake
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def create_package(version, target, os_type = :unix)
end

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

0 comments on commit 9264a87

Please sign in to comment.