-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document chefdk.* settings #54
Comments
I had the same problem recently, and found that you could set the following in if defined?(ChefDK)
chefdk.generator.license 'LICENSE'
chefdk.generator.email 'EMAIL'
chefdk.generator.copyright_holder 'ME'
end I wrapped it in Hope this helps! |
@smacfarlane Thanks for the information. What ChefDK version are you using? I get an exception after adding that block with 0.12.0 from the stable release page.
chef generate cookbook noodle:
|
I think I'm on 0.12.0 (not at my workstation atm). That error is probably caused by not setting the license to one of the licenses defined here: https://github.com/chef/chef-dk/blob/master/lib/chef-dk/generator.rb#L73-L152 |
Yup. Changing it to |
Great! Glad I could help. |
On ChefDK version 4.6.35 (as well as previous versions) I can only make this work by having the chefdk.generator.copyright_holder 'Copyright Holder'
chefdk.generator.license 'mit'
chefdk.generator.email 'mail@example.com` Should I create a separate issue about this? |
UPDATE: See end of thread first. This was originally an issue requesting the following.
Since 'knife cookbook create' is largely (or will be) deprecated, this is my plea for traditional behavior to be restored where one can use commands that take their default values from $HOME/.some_chef_file (a-la 'knife cookbook create' and knife.rb settings).
$HOME/.chef_cli.rb and something like:
cookbook_email = 'me@myorg.com'
cookbook_license = 'our_chosen_license'
cookbook_copyright = 'whatever'
Or... some way to set attributes and sanely reference
include_recipe "#{chefdk_stock_code_generator}"
The text was updated successfully, but these errors were encountered: