There's a tiny wrapper over Net::SFTP that makes it as simple as this

  box = Box.new('cool_app.com')

  box['some/path'].files do |file|
    puts file.read if file.name =~ /(found|find)me/
  end

https://github.com/alexeypetrushin/vfs

It also works with S3 and local FS (and You can copy/move dir/files from 
any source to any other)

-- 
Posted via http://www.ruby-forum.com/.