capistrano-scm-gitcopy 0.0.7 → 0.0.8

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: 60238a0237ac573788ca198840171ba56fe9930a
4
- data.tar.gz: c30a9ac6958e0b9fca76a75b8b8fe5bc9e2ec905
3
+ metadata.gz: 0376743e4d7c3600ea0c54ff689f58de8a19a1d0
4
+ data.tar.gz: cf014f4102cbf8ff0972dbd44ad8b1664ce7080a
5
5
  SHA512:
6
- metadata.gz: 7c2d3d55ad85710df81504c9a75773ce4ef55f343f281e6a2d1cf5757433543840ce25128a1fc5850bde98e7f6af87448de9e4bda70c5b6ce682eff9664f7eea
7
- data.tar.gz: 648b8edd8cec7e6cbd8a8d2784e7ab83752e706f7fc300f492d482b4247974b0fa27801dfb8c11beb7aa206acb2a4db5e69b85aa60033f7c832f842cd5b2e729
6
+ metadata.gz: 14516584d5ec9b0e6f2a6f5d0d2f596190d2fb4fb3e339c56b7e7b42a8ffd01d643edddc122aceca070a3f83aaf10f51a72d5d9a08e92735edb211c73d44cf5c
7
+ data.tar.gz: 8aa615deee498b81d950ae8757d7ebed6faddf6437a5705fe0ef86bcf4bdccbcdeeb2af8b74f9ccb3bab713aff8b33fc24d418a08f8f1aa844d6717806252069
data/README.md CHANGED
@@ -9,6 +9,10 @@ Thank wercker so much.
9
9
 
10
10
  This will make Capistrano tar the a specific git branch, upload it to the server(s) and then extract it in the release directory.
11
11
 
12
+ There is `sub_directory` option.
13
+ When specified, onthe the subtree of the checked-out repository will be deployed.
14
+ This is useful when the rails application is not at the root of the repository.
15
+
12
16
  Requirements
13
17
  ============
14
18
 
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "capistrano-scm-gitcopy"
6
- s.version = "0.0.7"
6
+ s.version = "0.0.8"
7
7
  s.licenses = ["MIT"]
8
8
  s.authors = ["Jack Wu", "Carl Douglas"]
9
9
  s.email = ["xuwupeng2000@gmail.com"]
@@ -4,9 +4,9 @@ namespace :gitcopy do
4
4
 
5
5
  desc "Archive files to #{archive_name}"
6
6
  file archive_name do |file|
7
- system "git show --quiet #{fetch(:branch)}"
7
+ system "git ls-remote #{fetch(:repo_url)} | grep #{fetch(:branch)}"
8
8
  if $?.exitstatus == 0
9
- system "git archive --format=tar #{fetch(:branch)} | gzip > #{ archive_name }"
9
+ system "git archive --remote #{fetch(:repo_url)} --format=tar #{fetch(:branch)}:#{fetch(:sub_directory)} | gzip > #{ archive_name }"
10
10
  else
11
11
  puts "Can't find commit for: #{fetch(:branch)}"
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-scm-gitcopy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Wu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-07 00:00:00.000000000 Z
12
+ date: 2014-12-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  version: '0'
62
62
  requirements: []
63
63
  rubyforge_project:
64
- rubygems_version: 2.2.2
64
+ rubygems_version: 2.4.5
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: Gitcopy strategy for capistrano 3.x