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 +4 -4
- data/README.md +4 -0
- data/capistrano-scm-gitcopy.gemspec +1 -1
- data/lib/capistrano/tasks/gitcopy.rake +2 -2
- 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: 0376743e4d7c3600ea0c54ff689f58de8a19a1d0
|
4
|
+
data.tar.gz: cf014f4102cbf8ff0972dbd44ad8b1664ce7080a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
@@ -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
|
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.
|
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-
|
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.
|
64
|
+
rubygems_version: 2.4.5
|
65
65
|
signing_key:
|
66
66
|
specification_version: 4
|
67
67
|
summary: Gitcopy strategy for capistrano 3.x
|