Wow, pretty slick Kevin.
I’ll give this a shot :) Thanks!
Best Regards,
JJ Asghar
e:
| c: 512.619.0722 | o: 512.977.5876
From: Kevin Nuckolls <
">
>
Reply-To: " "> " < "> > Date: Wednesday, March 26, 2014 at 6:57 PM To: chef < "> > Subject: [chef] Re: Re: Re: Re: Re: Re: Re: Question about uploading cookbooks If all of your cookbooks are being uploaded by knife you can use my knife wrapper, knife-santoku[1], to run arbitrary code before or after knife commands. It'll let you define a regexp that matches against knife commands so you can for example
fire off a notification whenever anyone uses a command with "upload" in it.
My current philosophy is that all cookbook uploads should be done via CI and now that I upload cookbooks largely with berks upload this tool has become less useful to me. Regardless, my original intent was to add callbacks to knife commands and knife-santoku will do that exceedingly well. If you generalize your knife configuration to be entirely environment variable driven you can go the extra mile and standardize how your team uses knife with a standard set of santoku callbacks. I've also used this to discourage the use of "knife environment edit" in the past. Hope that helps, -Kevin [1] https://github.com/knuckolls/knife-santoku On Wed, Mar 26, 2014 at 2:47 PM, JJ Asghar
<
" target="_blank">
> wrote:
Thanks Julian, |
Archive powered by MHonArc 2.6.16.