capistrano-scm-git-export 0.1.1 → 0.1.2
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 +9 -11
- data/capistrano-scm-git-export.gemspec +1 -1
- data/lib/capistrano/tasks/git_export.rake +2 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 178ae31fd41e6acf1e36e8791cdaefc373016b42
|
4
|
+
data.tar.gz: edfb5b410767c830912a473e0f7b8ed45fa9ea55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e216cd739bafd84da5d4b8a4f55faa0e67f530df1983d16f510ac734d73d45e68a1ffcd6d78cd2ffd0a0749cfb8ba64b5c2db58f1029ce7741f6686379197ce9
|
7
|
+
data.tar.gz: 5a8d8e1c670f6da420fc2a0b21c39558c93f0a69a2df0d3577b5f28544bd27bb9daefd1661305d6073b0832a2a81bf25489db402c593350a3f78da4143390c39
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
#
|
1
|
+
# capistrano-scm-git-export
|
2
2
|
|
3
|
-
|
3
|
+
Adds scm strategy archives your local git for Capistrano 3.x.
|
4
|
+
Useful when your deployment environment cannot reach remote git repository.
|
4
5
|
|
5
6
|
## Installation
|
6
7
|
|
@@ -8,17 +9,14 @@ Add this line to your application's Gemfile:
|
|
8
9
|
|
9
10
|
gem 'capistrano-scm-git-export'
|
10
11
|
|
11
|
-
And then execute:
|
12
|
-
|
13
|
-
$ bundle
|
14
|
-
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install capistrano-scm-git-export
|
18
|
-
|
19
12
|
## Usage
|
20
13
|
|
21
|
-
|
14
|
+
Set `:scm` as `:git_export`, and `:branch` as you want in `config/deploy.rb` or `config/deploy/ENVIRONMENT`.
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
set :scm, :git_export
|
18
|
+
set :branch, 'master'
|
19
|
+
```
|
22
20
|
|
23
21
|
## Contributing
|
24
22
|
|
@@ -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-scm-git-export'
|
7
|
-
spec.version = '0.1.
|
7
|
+
spec.version = '0.1.2'
|
8
8
|
spec.authors = ['Hoseong Hwang']
|
9
9
|
spec.email = ['thefron@ultracaption.net']
|
10
10
|
spec.description = %q{Git export strategy for capistrano 3.x}
|
@@ -4,6 +4,7 @@ namespace :git_export do
|
|
4
4
|
desc 'Archive files to #{archive_name}'
|
5
5
|
file archive_name do |t|
|
6
6
|
sh "git archive #{fetch(:branch)} --format=tar | bzip2 > #{t.name}"
|
7
|
+
set :current_revision, `git rev-parse #{fetch(:branch)}`.chomp
|
7
8
|
end
|
8
9
|
|
9
10
|
desc 'Deploy #{archive_name} to release_path'
|
@@ -19,7 +20,7 @@ namespace :git_export do
|
|
19
20
|
|
20
21
|
# Upload the archive, extract it and finally remove the tmp_file
|
21
22
|
upload!(tarball, tmp_file)
|
22
|
-
execute :tar, '-
|
23
|
+
execute :tar, '-xf', tmp_file, '-C', release_path
|
23
24
|
execute :rm, tmp_file
|
24
25
|
end
|
25
26
|
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-scm-git-export
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hoseong Hwang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: capistrano
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
55
|
description: Git export strategy for capistrano 3.x
|
@@ -59,7 +59,7 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .gitignore
|
62
|
+
- ".gitignore"
|
63
63
|
- Gemfile
|
64
64
|
- LICENSE.txt
|
65
65
|
- README.md
|
@@ -77,17 +77,17 @@ require_paths:
|
|
77
77
|
- lib
|
78
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- -
|
85
|
+
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
89
|
rubyforge_project:
|
90
|
-
rubygems_version: 2.
|
90
|
+
rubygems_version: 2.2.2
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: Git export strategy for capistrano 3.x
|