capistrano-git-copy 0.4.0 → 0.4.1
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 +4 -4
- data/lib/capistrano/git/copy/tasks/deploy.cap +5 -5
- data/lib/capistrano/git/copy/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: 2799635e6ca2f09d4a2bb4f31a244c61119580ef
|
|
4
|
+
data.tar.gz: c5b7993504bbb916db357343ccdcc118a9b34ac8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 324a39f389bcb1c475d51074ad381b61c0ea84f76cc40cae70ede7cba800a6c68f58ae955824011c8b65e5102d1cfd78c757646a92480fa399c43bdbcd618519
|
|
7
|
+
data.tar.gz: b465d73c1b1b81e1581bea0d29587ba3b87980323082d78f7a3d12ed1bcfeeda3b97894a54d769704490682c47a60128d0316a35b2c70c6ffa8bdc68223813d1
|
|
@@ -32,14 +32,14 @@ namespace :git_copy do
|
|
|
32
32
|
|
|
33
33
|
system("if [ -d #{local_repo_path} ]; then cd #{local_repo_path} && git fetch origin; else git clone #{fetch(:repo_url)} #{local_repo_path}; fi")
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
system("cd #{local_repo_path} && tar -xf __tmp.tar && cd __tmp && tar -czf #{local_tar_file} .")
|
|
35
|
+
system("cd #{local_repo_path} && git reset --hard origin/#{fetch(:branch)} && git submodule init && git submodule update && git-archive-all __tmp.tar")
|
|
36
|
+
system("cd #{local_repo_path} && tar -xf __tmp.tar && cd __tmp && tar -czf #{local_tar_file} .")
|
|
38
37
|
|
|
38
|
+
on roles :all do
|
|
39
39
|
upload!(local_tar_file, "#{fetch(:tmp_dir)}/#{fetch(:application)}_#{fetch(:stage)}.tar.gz")
|
|
40
|
-
|
|
41
|
-
system("rm -rf #{local_tar_file}")
|
|
42
40
|
end
|
|
41
|
+
|
|
42
|
+
system("rm -rf #{local_tar_file}")
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
desc 'Extract tar to release path'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-git-copy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Schwab
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: capistrano
|
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
106
106
|
version: '0'
|
|
107
107
|
requirements: []
|
|
108
108
|
rubyforge_project:
|
|
109
|
-
rubygems_version: 2.2.
|
|
109
|
+
rubygems_version: 2.2.2
|
|
110
110
|
signing_key:
|
|
111
111
|
specification_version: 4
|
|
112
112
|
summary: Copy local git repository deploy strategy for capistrano
|