Basic SCP helpers for Mina deployer. Used to download/upload files from/to the server.
Add this line to your application's Gemfile:
gem 'mina-scp', require: false
Require it in your deploy.rb
require 'mina/scp'
scp_download(remote_file, local_file)
scp_upload(local_file, remote_file)
If you specify verbose: true
as the last parameter, it will print the SCP command before running it.
If you want upload or download a folder you can also pass recursively: true
.
For suggestions, bugs and pull requests, use GitHub Issues. See CONTRIBUTING for more details.
To see what has changed in recent versions of Mina SCP, see the CHANGELOG.
See https://github.com/adie/mina-scp/graphs/contributors
Copyright © 2013-2015 Anton Dieterle. See LICENSE for details.
Project is a member of the OSS Manifesto.