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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4df1363d17de84c679fcf4b616f29b1562f27263
4
- data.tar.gz: 4ea5dc3b94c0e36ecd595fcd9db11b3f5aa149d5
3
+ metadata.gz: 91d13719c39d21f7f01ebc3851b024eb863c4f24
4
+ data.tar.gz: c9767794b929c4c6b5840514c96923f78dfb2eec
5
5
  SHA512:
6
- metadata.gz: bceb21dfa6a52c4db840fb9b38738047489e69bdec8fd1713522d5f89ab6f4a3030b95f10b4a17dd88506791b601bb8755ff82d0da3cf4a996d0fee694a23376
7
- data.tar.gz: e28b60d7bda9eadde12418f7a1f91bf863fb6a1bcfdc3262a6c5b7019f09ea3949a123067e03e0efd6c951f849a16f6f2265e88c7bf2322ae18a32a2bc7f6b48
6
+ metadata.gz: fda362c7d0ee4a8376d1b9d84384a737b81d21756298e7667c94ea22ea556dd74ac34238fe826bb48c998a31c86b1c7467617531925a9803d71ed1342a616aa4
7
+ data.tar.gz: eb6c7c93fdbfd132939713b5e5ac1f427c6ada5dfb69b0b6c7362f40a4ab3362da8361d27895bbf75d040abf6f2928223b6eb95e4c0fb96a7c4353e6cf72c5df
@@ -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
- checkout = %W[git reset --hard origin/#{fetch(:branch)}]
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
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Rsync
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
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.0.5
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-07-11 00:00:00.000000000 Z
11
+ date: 2014-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano