Capistrano::Rsync::Dsl
Capistrano plugin for rsync DSL
Requirements
- Capistrano ~> 3.3
Installation
Add this line to your application's Gemfile:
gem 'capistrano'
gem 'capistrano-rsync-dsl'
And then execute:
$ bundle install
Configuration
You can also Capistrano variables with set :name, value
.
Name | Default | Description |
---|---|---|
:sync_opts | ['-avz'] | basic sync option |
:ssh_opts | ['-e', 'ssh -c arcfour'] | ssh tranfar option |
:other_opts | ['--recursive', '--delete'] | sending file/directory option |
:username | ENV['USER'] or ask() from prompt | username on remote server |
Usage
Add this line to your application's Capfile:
require 'capistrano/capistrano-rsync-dsl'
DSL usage
in on roles()
blocks, use like this:
src = '/path/to/local'
dst = '/path/to/remote'
on roles(:all) do |host|
rsync src, host, dst
end
Contributing
- Fork it ( https://github.com/[my-github-username]/capistrano-sudo/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request