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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -1
- data/lib/capistrano/rsync.rb +4 -0
- data/lib/capistrano/rsync/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d646e32fb31439229222613f70245e2937bee7b3
|
4
|
+
data.tar.gz: 06580f193f4932f3c3ae5fb6d8d07699c8791109
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4e2c5098528f462736fe235d65a54dc35d67196e45f5ae0f463f1ca5c8c3fe5a2586356e933c8cafe9b6f248d41627c7566c99c04f2189431af6639cd994689
|
7
|
+
data.tar.gz: d03ec5c073e7e390ea383fa02a43dd06155ad2c1644fed53a0ce7ac053166dc5d4faa36975d7ba79057ce665ab9f9c26a2722ba35e6cdb2ba196ff391835a60b
|
data/CHANGELOG.md
CHANGED
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.
|
data/lib/capistrano/rsync.rb
CHANGED
@@ -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
|
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.
|
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:
|
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.
|
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
|