capistrano-git-copy 0.4.0 → 0.4.1

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: 94972a5b5759dadb2f2ebf2e41d36803676830f4
4
- data.tar.gz: f790c70439a4c18692d666148bf243da068bbe0e
3
+ metadata.gz: 2799635e6ca2f09d4a2bb4f31a244c61119580ef
4
+ data.tar.gz: c5b7993504bbb916db357343ccdcc118a9b34ac8
5
5
  SHA512:
6
- metadata.gz: e2f15230b238f8fce7ed92857ecaecc88df80f00d93a487905942792556c242d8f53cee21c2210c080472c280bd16e4f1524d5540940705683030774ebb5b9b1
7
- data.tar.gz: 411ef9a081b6479098a5246a5a433f81b9b1141d3dfce9b547596e21bbf92ddf05aba46e3263d5bed8971b438a294faf121414672ca5704ab3c20d37e8e097dc
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
- on roles :all do
36
- system("cd #{local_repo_path} && git reset --hard origin/#{fetch(:branch)} && git submodule init && git submodule update && git-archive-all __tmp.tar")
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'
@@ -2,7 +2,7 @@ module Capistrano
2
2
  module Git
3
3
  module Copy
4
4
  # gem version
5
- VERSION = '0.4.0'
5
+ VERSION = '0.4.1'
6
6
  end
7
7
  end
8
8
  end
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.0
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-02-23 00:00:00.000000000 Z
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.0
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