diff --git a/lib/pact/stub_service/cli.rb b/lib/pact/stub_service/cli.rb index 75e63ef..59a9356 100755 --- a/lib/pact/stub_service/cli.rb +++ b/lib/pact/stub_service/cli.rb @@ -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" diff --git a/tasks/package.rake b/tasks/package.rake index 766c6c0..c3dddf8 100644 --- a/tasks/package.rake +++ b/tasks/package.rake @@ -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']