[chef] Re: Re: Re: How to use Chef::Knife.run(...) ?


Chronological Thread 
  • From: "Mark J. Reed" < >
  • To:
  • Cc: Jonathan Matthews < >
  • Subject: [chef] Re: Re: Re: How to use Chef::Knife.run(...) ?
  • Date: Mon, 11 Apr 2011 06:43:40 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=mNuwUwYfBiR/8Mo24gG/yebEm6hOAZ1cjvq4Tksj4EeRq7hq4NE5GfFXzNTAysMf/q JPPC1jSqJ0W783MHkhO0xhUXy82C7+ptGG25VCr+d5P6l6TSNKw287rY5p4kpgsx/2Jl kW2szgDIFDpbCdOIOKshvArs6hhsc5KWbkumA=

On Mon, Apr 11, 2011 at 5:30 AM, Jonathan Matthews
< >
 wrote:
> On 11 April 2011 03:13, Hedge Hog 
> < >
>  wrote:
>> In case anyone else wishes to use Knife's cli without shelling out,
>> this should get you heading in the right direction:
>>
>https://gist.github.com/912977
>
> Ew! Really?

If you know ahead of time which knife subcommand you're running, can
call #run on the subclass directly instead of on Chef::Knife, and just
pass in the array of arguments without the explicit CliTemplate.

-- 
Mark J. Reed 
< >



Archive powered by MHonArc 2.6.16.

§