Open tas50 opened 3 years ago
Hello @tas50 , here are few questions from team :
Thanks for sharing the notes, @kasif-adnan! ...the team will figure out answers to most Q's. the only input we need from product management is on the second Q i.e. "As part of this ticket does knife supermarket implementation needs to be enhanced as well ? Could do this, but why if we are eventually deprecating ?"
We should move the Ruby based
knife supermarket
commands to the chef CLI. The goal here is to mostly replicate existing behavior with some important differences.Current knife commands
New Commands
Artifact Type
The main difference in the implementation as we move
knife supermarket
commands tochef supermarket
is the concept of an artifact type.knife supermarket
assumes that the user is searching, sharing, or downloading a cookbook.chef supermarket
will allow either cookbooks or profiles. This requires us to have a positional parameter for the artifact type. For example:knife supermarket download foo
becomeschef supermarket download cookbook foo
More Intelligent Share
Right now
knife supermarket share
command requires the user to define their cookbook path in theknife.rb
config file and this relies on a monolithicchef-repo
setup with a dedicated cookbooks directory. We don't want to require the cookbooks path anymore. The command needs to be more intelligent about sharing in general.When the user runs
knife cookbook share
without a cookbook name we should assume they want to share the cookbook in the current directory. If there's ametadata.rb
file then share the current cookbook.When the user runs
knife cookbook share foo
check the following locations:cookbooks/foo
path in the current working directory?Technical Questions: