Method: Kitchen::Provisioner::ChefBase#license_acceptance_id

Defined in:
lib/kitchen/provisioner/chef_base.rb

#license_acceptance_idString

If the user has policyfiles we shell out to the ‘chef` executable, so need to ensure they have accepted the Chef Workstation license. Otherwise they just need the Chef Infra license.

Returns:

  • (String)

    license id to prompt for acceptance



273
274
275
276
277
278
279
280
281
282
# File 'lib/kitchen/provisioner/chef_base.rb', line 273

def license_acceptance_id
  case
    when File.exist?(policyfile)
      "chef-workstation"
    when config[:product_name]
      config[:product_name]
    else
      "chef"
  end
end