Skip to content

Commit

Permalink
Doc change explaining usage of chef license key and license server ur…
Browse files Browse the repository at this point in the history
…l using config block

Signed-off-by: Nik08 <[email protected]>
  • Loading branch information
Nik08 committed Aug 14, 2023
1 parent d9d51c7 commit 15e5686
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions components/ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 section contains all the methods that the client would invoke while using the Chef Licensing Library -->
## Usage
Expand Down
1 change: 0 additions & 1 deletion components/ruby/lib/chef-licensing/license_key_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15e5686

Please sign in to comment.