You can do:
buffer = capture("cat /my/file")It won't work well if /my/file contains binary data, but for text it should work well enough.
- Jamis On Jan 23, 2008, at 2:54 PM, David Masover wrote:
Right now, we "put" files only from buffers, but we "get" files only to local files.I kind of feel like "put" and "get" should be symmetric, but also, I would like to be able to work with files or buffers as I choose. Right now, I'm needing to read a remote file, just to pull one value out of it. I don't really see a good way to do this; it looks as though I can either do:run 'cat /my/file' do ... or: get '/my/file', '/tmp/something_random' # and then open it, delete it, etc.I'm writing on the off chance that someone's already solved this. Basically looking for something likebuffer = get '/my/file' --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
smime.p7s
Description: S/MIME cryptographic signature
