chef / chef/chef-cli

Update generators to allow use of own license template file

Open
#92 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Aspect: UX Status: Help Wanted Triage: Feature Request Type: Enhancement
Dominant language
Ruby
Stars
18
Forks
23
Avg merge
5d 17h
Merged PRs (30d)
1

Description

Currently, the chef generators only allow for a constrained list of licenses (@ https://github.com/opscode/chef-dk/blob/master/lib/chef-dk/generator.rb#L73 ) when creating a repo.

It would be great if we could provide a license name (in knife.rb?) that matches a file in https://github.com/opscode/chef-dk/tree/master/lib/chef-dk/skeletons/code_generator/templates/default

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with lib/chef-dk/generator.rb around the constrained license list and inspect the templates under lib/chef-dk/skeletons/code_generator/templates/default. Check how knife.rb values are read, then verify that a configured license name can select a matching template file when generating a repository.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.