Hi and welcome to Capistrano!

> How do I get Capistrano to look on the remote machine for the file?

One possibility is to use a 'run' call (I've tried with a "ls -la"
instead of the cat command):

desc "Display a remote file"
task :display_remote_file do
  run "cat /myfolder/myfile.ext" do |ch, st, data|
    puts "Here's the result!"
    puts data
    puts "End of it"
  end
end

Alternatively you could download the file using an additional 'get'
method (http://source.mihelac.org/2007/1/11/capistrano-get-method-
download-files-from-server) then have it displayed.

hope this helps!

Thibaut Barrère / LoGeek
--
http://blog.logeek.fr - about writing software
http://evolvingworker.com - tools for a better day
--~--~---------~--~----~------------~-------~--~----~
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