Capistrano seems to have an extensive file transfer package .
However, after rewriting it seems to be gone in version 3.0. Any idea if there is an alternative way to transfer files to / from servers?
Download:
desc "download foobar.txt into local_dir/" task :foobar do download! "some_remote_path/foobar.txt", "local_dir/" end
I know this works with Cap 3.2.1 since I am using it right now.
I asked about this in IRC and found that there is a download function:
on hosts do |host| upload! '/config/database.yml', '/opt/my_project/shared/database.yml' end
https://github.com/leehambley/sshkit/blob/master/EXAMPLES.md However, I still have to find a way to download files from the server without using rsync or scp
You can use rsync
run_locally do execute"rsync -ah --progress source destination" end
Source: https://habr.com/ru/post/956355/More articles:Can LinkedIn crawl SPA pages? - angularjsHow to find out available commands (= named operations) in sbt - sbtC ++ Branching a recursive structure? - c ++Why are there no tasks -V list of plugins from the global .sbt directory? - sbtvertical scrolling gridview XAML application for storing windows - c #Missing InstallShield Dependencies - c #Playback 2.2 JSON Read with combinators: how to work with nested optional objects? - jsonQuestion marks in Xcode 5 project navigator - gitJava 7 watchservice gets file change offset - javaSend data to server via JSON - jsonAll Articles