diff --git a/components/ruby/README.md b/components/ruby/README.md index 59096b35..0f033621 100644 --- a/components/ruby/README.md +++ b/components/ruby/README.md @@ -81,10 +81,16 @@ ChefLicensing.configure do |config| config.chef_product_name = "chef" config.chef_executable_name = "inspec" config.chef_entitlement_id = "chef123" + config.chef_license_key="free-t0832est-1111-1te1-b1e5-011t182test3-111" + config.license_server_url_in_config_file = true config.logger = Logger.new($stdout) end ``` +where: + +- `chef_license_key`: the unique License key which validates software entitlement to the Chef's Software. +- `license_server_url_in_config_file`: a boolean flag set when license server url to be used from config block. ## Usage diff --git a/components/ruby/lib/chef-licensing/license_key_fetcher.rb b/components/ruby/lib/chef-licensing/license_key_fetcher.rb index 3c10fb2b..98103411 100644 --- a/components/ruby/lib/chef-licensing/license_key_fetcher.rb +++ b/components/ruby/lib/chef-licensing/license_key_fetcher.rb @@ -115,7 +115,6 @@ def perform_global_operations logger.debug "License Key fetcher examining ENV checks" new_keys = fetch_license_key_from_env - # require "pry"; binding.pry license_type = validate_and_fetch_license_type(new_keys) if license_type && !unrestricted_license_added?(new_keys, license_type) # break the flow after the prompt if there is a restriction in adding license