capistrano-advance-remote-cache 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4990ed5fd350798064d71cd0f2a5ec1130dfbad
|
4
|
+
data.tar.gz: a89e2173f1ffbcb68711bd385c62d10623e55a6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7e04d4a4f2cf453c2b40e56675ac1d8f611e2ea8034f7811ec9ea659ace1bc6b14579f21f0493319e20365356337cedab575113198fd9f046b73bceeb9f827a
|
7
|
+
data.tar.gz: 437ecd26a519131453aa98c4c4a1a7b5bd7aa07fb150a231407500f516c4f0b2bc0bb88642f8e4b884b05fa973d153ba83cf6ea14145f667c00df200fc5b0c2b
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano-advance-remote-cache"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.4"
|
8
8
|
spec.authors = ["Yuanxin Qiu"]
|
9
9
|
spec.email = ["hzuqiuyuanxin@gmail.com"]
|
10
10
|
|
@@ -28,11 +28,12 @@ module Capistrano
|
|
28
28
|
command = "if [ -d #{repository_cache} ]; then " +
|
29
29
|
"#{source.sync(revision, repository_cache)}; " +
|
30
30
|
"else #{source.checkout(revision, repository_cache)}; fi"
|
31
|
-
scm_run
|
31
|
+
scm_run command
|
32
32
|
end
|
33
33
|
|
34
34
|
def copy_repository_cache
|
35
35
|
logger.trace "copying the cached version to #{configuration[:release_path]}"
|
36
|
+
scm_run "if [ ! -d #{configuration[:release_path]} ]; then mkdir -p #{configuration[:release_path]}; fi"
|
36
37
|
run "cd #{repository_cache} && git archive #{revision} | tar -x -f - -C #{configuration[:release_path]} && #{mark}"
|
37
38
|
end
|
38
39
|
|