capistrano-rsync-bladrak 1.3.8 → 1.4.0

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: cba7e3c9526a9113d23af3d0e948982a9874b187
4
- data.tar.gz: b5131aea92c4df7f1e841f3d0ae327627adee9ff
3
+ metadata.gz: d646e32fb31439229222613f70245e2937bee7b3
4
+ data.tar.gz: 06580f193f4932f3c3ae5fb6d8d07699c8791109
5
5
  SHA512:
6
- metadata.gz: 078ed2cd8ab3084283067ec07b75c3ff05a263db66163193c602091d64d195583d048825dcadc916f7ea0a5ed164bcd84d1f0c061668a19ba49ecbf162f0adc6
7
- data.tar.gz: f4e48f5c22a2f13c0b86b4778bfe2685ce85bb91e3d2f444166a718618f148032f3f30331667df0bee4496e18ddff30f2c870c3f1b8ac4c98e5e4c365f71f2eb
6
+ metadata.gz: e4e2c5098528f462736fe235d65a54dc35d67196e45f5ae0f463f1ca5c8c3fe5a2586356e933c8cafe9b6f248d41627c7566c99c04f2189431af6639cd994689
7
+ data.tar.gz: d03ec5c073e7e390ea383fa02a43dd06155ad2c1644fed53a0ce7ac053166dc5d4faa36975d7ba79057ce665ab9f9c26a2722ba35e6cdb2ba196ff391835a60b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.4.0 (Jan 25, 2017)
2
+ - Adds option to bypass clone stage.
3
+
1
4
  ## 1.3.5 (Sep 7, 2015)
2
5
  - Adds clean command to submodules to remove untracking files.
3
6
  - Rectifies the tag deployment.
data/README.md CHANGED
@@ -88,7 +88,7 @@ Capistrano::Rsync runs `rsync:stage_done` before rsyncing. Hook to that like thi
88
88
  ```ruby
89
89
  task :precompile do
90
90
  Dir.chdir fetch(:rsync_stage) do
91
- system "rake", "assets:precompile"
91
+ system "rake", "assets:precompile" or raise
92
92
  end
93
93
  end
94
94
 
@@ -100,6 +100,11 @@ after "rsync:stage_done", "precompile"
100
100
  cap rsync:release
101
101
  ```
102
102
 
103
+ ### Bypass clone stage
104
+ ```
105
+ set :bypass_git_clone, true
106
+ ```
107
+
103
108
  Troubleshooting
104
109
  ---------------
105
110
  If you need to hook after rsync:stage_done in your deploy.rb, the rsync namespace is not loaded yet.
@@ -34,6 +34,8 @@ set_if_empty :enable_git_submodules, false
34
34
 
35
35
  set_if_empty :reset_git_submodules_before_update, false
36
36
 
37
+ set_if_empty :bypass_git_clone, false
38
+
37
39
  # NOTE: Please don't depend on tasks without a description (`desc`) as they
38
40
  # might change between minor or patch version releases. They make up the
39
41
  # private API and internals of Capistrano::Rsync. If you think something should
@@ -142,6 +144,7 @@ namespace :rsync do
142
144
  task :create_stage do
143
145
  next if File.directory?(fetch(:rsync_stage))
144
146
  next if !has_roles?
147
+ next if !bypass_git_clone
145
148
 
146
149
  if fetch(:rsync_sparse_checkout, []).any?
147
150
  run_locally do
@@ -180,6 +183,7 @@ namespace :rsync do
180
183
  desc "Stage the repository in a local directory."
181
184
  task :stage => %w[create_stage] do
182
185
  next if !has_roles?
186
+ next if !bypass_git_clone
183
187
 
184
188
  run_locally do
185
189
  within fetch(:rsync_stage) do
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Rsync
3
- VERSION = "1.3.8"
3
+ VERSION = "1.4.0"
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.8
4
+ version: 1.4.0
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: 2016-01-04 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -66,7 +66,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  requirements: []
68
68
  rubyforge_project:
69
- rubygems_version: 2.4.5
69
+ rubygems_version: 2.4.6
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Increase deployment performance through rsync Capistrano v3 ready! This is