- From: Joshua Timberman <
>
- To: "<
>" <
>
- Cc: "
" <
>
- Subject: [chef] Re: Re: Re: Re: Any rake task or plugin to upload all environments
- Date: Sat, 15 Sep 2012 13:20:18 +0000
- Accept-language: en-US
Any of the "from file" knife commands should be able to use dir/*.{rb,json}
to upload all those files in the directory. For example, roles:
knife role from file roles/*.rb
Uploads all the Ruby DSL role files. Likewise, for environments:
knife environment from file environments/*.rb
Would do the same for environments. The from file commands use the same class
to do the file loading.
On Sep 15, 2012, at 4:37, "AJ Christensen"
<
>
wrote:
>
Oh, weird. Thought I had used that, maybe it was my shell expansion or
>
similar? I'll check next time I can.
>
>
Did we get a knife environment from file -a yet ?
>
>
Similarly, something like this might work: for i in environments/*.rb;
>
do knife environment from file ${i} ; done
>
>
--AJ
>
>
On 15 September 2012 22:23, Sachin Sagar Rai
>
<
>
>
wrote:
>
> Hi,
>
> But that command just upload only one env file?
>
>
>
> Can you send me the version of the knife that you'd use?
>
>
>
> -------------------------------------------
>
> @millisami
>
> ~ Sachin Sagar Rai
>
> Ruby on Rails Developer
>
> http://tfm.com.np
>
> http://nepalonrails.tumblr.com
>
> Sent with Sparrow
>
>
>
> On Thursday, September 6, 2012 at 1:21 PM, Millisi wrote:
>
>
>
> Thanks!
>
>
>
> Via Millisami'z iPhone
>
>
>
> On Sep 6, 2012, at 8:28 AM, AJ Christensen
>
> <
>
>
> wrote:
>
>
>
> knife environment from file environments/*.rb
>
>
>
> Cheers,
>
>
>
> --AJ
>
>
>
> On Sep 2, 2012 12:44 AM, "Sachin Sagar Rai"
>
> <
>
>
> wrote:
>
>
>
> Ohai!
>
>
>
> Is there any knife or rake task or plugin to upload all the environments
>
> files with single command?
>
>
>
>
>
> -------------------------------------------
>
> @millisami
>
> ~ Sachin Sagar Rai
>
> Ruby on Rails Developer
>
> http://tfm.com.np
>
> http://nepalonrails.tumblr.com
>
> Sent with Sparrow
>
>
>
>
>
Archive powered by MHonArc 2.6.16.