gta 0.4.4 → 0.4.5
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 +26 -3
- data/gta.gemspec +1 -0
- data/lib/gta/sh.rb +1 -1
- data/lib/gta/tasks.rb +1 -0
- data/lib/gta/tasks/{diff.rb → diff.rake} +0 -0
- data/lib/gta/version.rb +1 -1
- data/spec/sh_spec.rb +33 -0
- metadata +20 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 818670cc5ee8e491e1325084620ba663467e7338
|
4
|
+
data.tar.gz: 82b239d17e63e19a2f17b59473f4aae9d28a6edb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb3e3d9d490e45c49097f8ec78b8469389e81751604099314b97fd88ead5bf56d8079d9a04f1aa2dbcfb5511739aaf0ad1f7547e2f838f1a740757499f7591e1
|
7
|
+
data.tar.gz: b14356a82b2d4214a6dc41bba1cc4ac23c4779b0880d057ce419ce65cf39e0ce215fa65c881546003943983bc3a5fc7f23ad6b9810ea065e4dff89a17d7235ac
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[](https://codeclimate.com/github/company/gta)
|
2
2
|
|
3
3
|
# GTA - the Git Transit Authority
|
4
4
|
|
@@ -15,7 +15,7 @@ that can car reek havok.
|
|
15
15
|
GTA reads git configuration from yml file that should be checked into
|
16
16
|
source control, assuring the whole team is sharing configurations. There
|
17
17
|
are easy methods for setting up git remotes, and moving code from stage
|
18
|
-
to stage.
|
18
|
+
to stage.
|
19
19
|
|
20
20
|
## Installation
|
21
21
|
|
@@ -31,12 +31,35 @@ Or install it yourself as:
|
|
31
31
|
|
32
32
|
$ gem install gta
|
33
33
|
|
34
|
+
Make sure you create a `gta.yml` file in your config directory that looks something like this:
|
35
|
+
|
36
|
+
name: app-name
|
37
|
+
|
38
|
+
stages:
|
39
|
+
origin:
|
40
|
+
repository: git@github.com:username/repo.git
|
41
|
+
|
42
|
+
staging:
|
43
|
+
source: origin
|
44
|
+
repository: git@heroku.com:app-name-staging.git
|
45
|
+
|
46
|
+
qa:
|
47
|
+
source: staging
|
48
|
+
repository: git@heroku.com:app-name-qa.git
|
49
|
+
|
50
|
+
production:
|
51
|
+
source: qa
|
52
|
+
repository: git@heroku.com:app-name-production.git
|
53
|
+
|
54
|
+
**Note:** make sure to add `require 'gta/tasks'` to your Rakefile
|
55
|
+
|
56
|
+
|
34
57
|
## Usage
|
35
58
|
|
36
59
|
The main use case is via rake task. Include the rake tasks via the
|
37
60
|
project Rakefile.
|
38
61
|
|
39
|
-
|
62
|
+
|
40
63
|
|
41
64
|
## Contributing
|
42
65
|
|
data/gta.gemspec
CHANGED
data/lib/gta/sh.rb
CHANGED
data/lib/gta/tasks.rb
CHANGED
File without changes
|
data/lib/gta/version.rb
CHANGED
data/spec/sh_spec.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
|
4
|
+
describe GTA::Sh do
|
5
|
+
include GTA::Sh
|
6
|
+
|
7
|
+
let(:log_path) { File.dirname(__FILE__) + "/../log/gta.log" }
|
8
|
+
let(:log) { File.read(log_path) }
|
9
|
+
|
10
|
+
before do
|
11
|
+
File.delete(log_path) if File.exist?(log_path)
|
12
|
+
end
|
13
|
+
|
14
|
+
context 'when sh is not successful' do
|
15
|
+
it "does not raise an exception" do
|
16
|
+
capture_stdout do
|
17
|
+
expect {
|
18
|
+
sh("foo")
|
19
|
+
}.not_to raise_error
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
context 'when sh! is not successful' do
|
25
|
+
it "raises an exception" do
|
26
|
+
capture_stdout do
|
27
|
+
expect {
|
28
|
+
sh!("foo")
|
29
|
+
}.to raise_error
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- socialchorus
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2014-05-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ansi
|
@@ -68,6 +68,20 @@ dependencies:
|
|
68
68
|
- - '>='
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: heroku
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - '>='
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
71
85
|
description: 'GTA: the Git Transit Authority - A git based deploy tool for moving
|
72
86
|
code from stage to stage.'
|
73
87
|
email:
|
@@ -99,7 +113,7 @@ files:
|
|
99
113
|
- lib/gta/tag_finder.rb
|
100
114
|
- lib/gta/tasks.rb
|
101
115
|
- lib/gta/tasks/deploy.rake
|
102
|
-
- lib/gta/tasks/diff.
|
116
|
+
- lib/gta/tasks/diff.rake
|
103
117
|
- lib/gta/tasks/gta.rake
|
104
118
|
- lib/gta/tasks/heroku.rake
|
105
119
|
- lib/gta/tasks/heroku_db.rake
|
@@ -116,6 +130,7 @@ files:
|
|
116
130
|
- spec/hotfix_spec.rb
|
117
131
|
- spec/local_db_spec.rb
|
118
132
|
- spec/manager_spec.rb
|
133
|
+
- spec/sh_spec.rb
|
119
134
|
- spec/spec_helper.rb
|
120
135
|
- spec/stage_spec.rb
|
121
136
|
- spec/support/capturers.rb
|
@@ -140,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
155
|
version: '0'
|
141
156
|
requirements: []
|
142
157
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
158
|
+
rubygems_version: 2.2.2
|
144
159
|
signing_key:
|
145
160
|
specification_version: 4
|
146
161
|
summary: 'GTA: the Git Transit Authority - A git based deploy tool for moving code
|
@@ -157,6 +172,7 @@ test_files:
|
|
157
172
|
- spec/hotfix_spec.rb
|
158
173
|
- spec/local_db_spec.rb
|
159
174
|
- spec/manager_spec.rb
|
175
|
+
- spec/sh_spec.rb
|
160
176
|
- spec/spec_helper.rb
|
161
177
|
- spec/stage_spec.rb
|
162
178
|
- spec/support/capturers.rb
|