Sorry, I missed your other two questions. :) Oops:

On Jun 18, 2007, at 11:05 AM, Claudio Poli wrote:

> Also, I was having some trouble when writing files.
> mongrel_cluster has a system command to spit out a config file, based
> on parameters, backgroundrb don't (although it has the -l switch).
> So I was trying something like:
>
> YAML.dump(config, File.open("#{brdb_conf}", "w"))
>
> but that couldn't rellay work, because it doesn't respect permissions
> of the connected user, sudo and whatalike, just like run do.
> Maybe it's not possible, but there isn't a wrapper for executing a
> ruby method just like what run do?

There is no wrapper for executing ruby code on the remote server, but  
it wouldn't be terribly hard to write one, if you needed one. For the  
general case, you'd just use put() to write the ruby code you want to  
execute to a temporary file, and then run() to run the file.

> Jamis, yesterday I was talking along with halorgium on an idea of
> opening up a capistrano recipes directory, what do you think about?

I'm all for it. I wouldn't necessarily want to bless it as an  
"official" capistrano site, but I'd be happy to include a link to it  
from capify.org.

- Jamis


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to