On Jan 22, 2007, at 10:02 PM, Ezra Zygmuntowicz wrote:
> So I have worked on this some more to incorporate being abel to set
> ENV vars per line if you want.
>
> sh.RAILS_ENV('production').mkdir_p 'foo/bar'
>
> #=> RAILS_ENV=production mkdir -p foo/bar
Nice!
> Jamis asked me to get the update_code task to work with this. Here
> you can see a comparison between the old way and the new way:
>
> http://pastie.caboo.se/34983
>
That's very compelling, Ezra. I love it. Regarding the explicit use
of the && operator (appending it to the argument list for each
operation), what would you think of something a bit more semantic, like:
sh.require_all do
sh.foo
sh.bar
end
Which would result in "(foo) && (bar)", or something to that effect?
> ALso I have made this into a capistrano plugin that you can use
> right now and it already will upload your script to a tmpdir on the
> server chmod +x it and then run it and then delete it. I am attaching
> the new gem here if you want to try it.
Awesome stuff, Ezra. Very exciting to see this progressing so quickly!
- Jamis
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---