capistrano-rsync-bladrak 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/rsync.rb +5 -4
- data/lib/capistrano/rsync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91d13719c39d21f7f01ebc3851b024eb863c4f24
|
4
|
+
data.tar.gz: c9767794b929c4c6b5840514c96923f78dfb2eec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fda362c7d0ee4a8376d1b9d84384a737b81d21756298e7667c94ea22ea556dd74ac34238fe826bb48c998a31c86b1c7467617531925a9803d71ed1342a616aa4
|
7
|
+
data.tar.gz: eb6c7c93fdbfd132939713b5e5ac1f427c6ada5dfb69b0b6c7362f40a4ab3362da8361d27895bbf75d040abf6f2928223b6eb95e4c0fb96a7c4353e6cf72c5df
|
data/lib/capistrano/rsync.rb
CHANGED
@@ -43,7 +43,7 @@ task :rsync => %w[rsync:stage] do
|
|
43
43
|
rsync.concat fetch(:rsync_options)
|
44
44
|
rsync << File.join(fetch(:rsync_stage), File.join(fetch(:rsync_target_dir), ""))
|
45
45
|
rsync << "#{user}#{role.hostname}:#{rsync_cache.call || release_path}"
|
46
|
-
|
46
|
+
|
47
47
|
puts "Executing rsync: #{rsync}"
|
48
48
|
|
49
49
|
Kernel.system *rsync
|
@@ -53,11 +53,11 @@ end
|
|
53
53
|
namespace :rsync do
|
54
54
|
task :hook_scm do
|
55
55
|
Rake::Task.define_task("#{scm}:check") do
|
56
|
-
invoke "rsync:check"
|
56
|
+
invoke "rsync:check"
|
57
57
|
end
|
58
58
|
|
59
59
|
Rake::Task.define_task("#{scm}:create_release") do
|
60
|
-
invoke "rsync:release"
|
60
|
+
invoke "rsync:release"
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
@@ -83,7 +83,8 @@ namespace :rsync do
|
|
83
83
|
Kernel.system *update
|
84
84
|
puts "Executing rsync:stage:update #{update}"
|
85
85
|
|
86
|
-
|
86
|
+
target = !!fetch(:rsync_checkout_tag, false) ? "tags/#{fetch(:branch)}" : "origin/#{fetch(:branch)}"
|
87
|
+
checkout = %W[git reset --hard #{target}]
|
87
88
|
puts "Executing rsync:stage:checkout #{checkout}"
|
88
89
|
|
89
90
|
Kernel.system *checkout
|
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.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andri Möll, Hugo Briand
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|