################################################################################# # <SAMBOT> BUILD COMMAND # #################################################################################
This command will generate all the files required for the functioning of a Chef cookbook from aconfiguration file. The motivation behind this setup is to standardize and simplify the Chef cookbook creation workflow.
The configuration file should be called .config.yml and stored in the root of the Chef cookbook. After the command is run, all the files required to author a cookbook will be placed in the same directory as the .config.yml file.
Furthermore, a pre-push Git hook will be generated which will check the cookbook files before allowing the origin repository to be updated.
The build command will fail if the .config.yml file is not present or isn't properly formatted. To understand the structure of a .config.yml file, simply create a new cookbook or take a look at the comments in the template file templates/.config.yml.