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: b1e5a8bfc63af2f6f2af2a6f31e0f770b80a85b3
4
- data.tar.gz: 98af00456cc445b1f776468a7859c00ed578ba5f
3
+ metadata.gz: d4990ed5fd350798064d71cd0f2a5ec1130dfbad
4
+ data.tar.gz: a89e2173f1ffbcb68711bd385c62d10623e55a6e
5
5
  SHA512:
6
- metadata.gz: 618f457fa80dad094c62597a942b2fdf4891ae73131babf5547ac1fdd6fafc1cf608b4da73b9584e4b6c1614e4845a6bdee81493d7514236fe2d66c4b74b0a9d
7
- data.tar.gz: b106ce332923ee6fd972eb36cf12b64839080e6d12acea7cdd80d8474e53f356f69fce72be9543d692faea47637f989b5ac6797f75a046ce441258e7057c0c2a
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.3"
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(command)
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-advance-remote-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuanxin Qiu