InterviewSolution
| 1. |
Differentiate between “knife supermarket download “ and “knife supermarket install” command |
|
Answer» “Knife supermarket download” command is used to download the cookbook available in Chef Supermarket be it private or public supermarket. The cookbooks downloaded are in the form of tar.gz files and are downloaded to the current WORKING directory. If the specified cookbook is deprecated in the Chef Supermarket the user is notified the same and provides the details of the most recent version of the non-deprecated cookbook. For eg : “knife supermarket INSTALL “ command is used to COMMUNICATE with cookbooks in public or private Chef Supermarket. The downloaded cookbooks are installed in the LOCAL git repository unlike in the case of “knife supermarket download” command.“knife supermarket install “ command does the following steps
Hence this command allows updated upstream versions to be used without losing the local modifications done to the cookbook. |
|