capistrano-rsync-bladrak 1.3.7 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2797fd017d02bdd21cd457f9f7ee120c83e19e1b
4
- data.tar.gz: 38d2f16e61d3c2629216b220ef9cfdf2d945cc77
3
+ metadata.gz: cba7e3c9526a9113d23af3d0e948982a9874b187
4
+ data.tar.gz: b5131aea92c4df7f1e841f3d0ae327627adee9ff
5
5
  SHA512:
6
- metadata.gz: 38e130f659680db9664b558f3dd7393c46d5c56d4351ee9db95dad4f344f01a8f2cc395c648e6c0f5704f275bc3f29f1a7872d3cc8925524947933bc45dcdc11
7
- data.tar.gz: 28c8d48f95cf56dd8cc7cf46c09d32fec8ff58fc2626610b27d6a9fa08c54046d33a6581037774dc1f4cb281cb139f03a762bf8717e22dee99238de57ac44598
6
+ metadata.gz: 078ed2cd8ab3084283067ec07b75c3ff05a263db66163193c602091d64d195583d048825dcadc916f7ea0a5ed164bcd84d1f0c061668a19ba49ecbf162f0adc6
7
+ data.tar.gz: f4e48f5c22a2f13c0b86b4778bfe2685ce85bb91e3d2f444166a718618f148032f3f30331667df0bee4496e18ddff30f2c870c3f1b8ac4c98e5e4c365f71f2eb
@@ -84,11 +84,16 @@ desc "Stage and rsync to the server (or its cache)."
84
84
  task :rsync => %w[rsync:stage_done] do
85
85
  on release_roles(:all) do |role|
86
86
  user = role.user + "@" if !role.user.nil?
87
+ rsync_options = fetch(:rsync_options)
88
+
89
+ if !role.port.nil?
90
+ rsync_options.unshift("-e 'ssh -p #{role.port}'")
91
+ end
87
92
 
88
93
  run_locally do
89
94
  within fetch(:rsync_stage) do
90
95
  execute :rsync,
91
- fetch(:rsync_options),
96
+ rsync_options,
92
97
  fetch(:rsync_target_dir),
93
98
  "#{user}#{role.hostname}:#{rsync_cache.call || release_path}"
94
99
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Rsync
3
- VERSION = "1.3.7"
3
+ VERSION = "1.3.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rsync-bladrak
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugo Briand, Andri Möll
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-09 00:00:00.000000000 Z
11
+ date: 2016-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano