auto_tagger 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/README.md +35 -13
- data/lib/auto_tagger/base.rb +4 -6
- data/lib/auto_tagger/recipes.rb +5 -0
- data/lib/auto_tagger/version.rb +1 -1
- metadata +13 -5
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -4,6 +4,8 @@ This creates and pushes tags to your git repository, please use with caution.
|
|
4
4
|
|
5
5
|
# AutoTagger
|
6
6
|
|
7
|
+
[![Build Status](https://secure.travis-ci.org/zilkey/auto_tagger.png)](http://travis-ci.org/zilkey/auto_tagger)
|
8
|
+
|
7
9
|
AutoTagger is a gem that helps you automatically create a date-stamped tag for each stage of your deployment, and deploy from the last tag from the previous environment.
|
8
10
|
|
9
11
|
Let's say you have the following workflow:
|
@@ -181,24 +183,44 @@ You can store options in an options file, which is .auto_tagger by default. You
|
|
181
183
|
--ref-path=autotags
|
182
184
|
--refs-to-keep=5
|
183
185
|
|
184
|
-
##
|
186
|
+
## Testing
|
185
187
|
|
186
|
-
|
188
|
+
### Setup
|
187
189
|
|
188
|
-
|
189
|
-
|
190
|
-
To ensure that this has worked, try this:
|
190
|
+
1. Authorize your local SSH keys to access your local machine:
|
191
191
|
|
192
|
-
|
193
|
-
|
194
|
-
|
192
|
+
```sh
|
193
|
+
./script/configure-ssh-localhost.sh
|
194
|
+
```
|
195
|
+
|
196
|
+
To verify, you should be able to connect to localhost without supplying a password:
|
197
|
+
|
198
|
+
```sh
|
199
|
+
ssh localhost
|
200
|
+
```
|
201
|
+
|
202
|
+
2. Install bundler:
|
203
|
+
|
204
|
+
```sh
|
205
|
+
gem install bundler
|
206
|
+
```
|
207
|
+
|
208
|
+
3. Install the project's bundle:
|
209
|
+
|
210
|
+
```sh
|
211
|
+
bundle install
|
212
|
+
```
|
213
|
+
|
214
|
+
### Running
|
215
|
+
|
216
|
+
To run the entire suite:
|
217
|
+
|
218
|
+
rake
|
195
219
|
|
196
|
-
To run
|
220
|
+
To run individual test suites:
|
197
221
|
|
198
|
-
|
199
|
-
|
200
|
-
rspec spec
|
201
|
-
cucumber features
|
222
|
+
rake spec
|
223
|
+
rake features
|
202
224
|
|
203
225
|
## Releasing
|
204
226
|
|
data/lib/auto_tagger/base.rb
CHANGED
@@ -36,18 +36,16 @@ module AutoTagger
|
|
36
36
|
new_tag
|
37
37
|
end
|
38
38
|
|
39
|
+
def fetch
|
40
|
+
repo.refs.fetch(pattern, configuration.remote) if configuration.fetch_refs?
|
41
|
+
end
|
42
|
+
|
39
43
|
def pattern
|
40
44
|
"refs/#{configuration.ref_path}/*"
|
41
45
|
end
|
42
46
|
|
43
47
|
private :pattern
|
44
48
|
|
45
|
-
def fetch
|
46
|
-
repo.refs.fetch(pattern, configuration.remote) if configuration.fetch_refs?
|
47
|
-
end
|
48
|
-
|
49
|
-
private :fetch
|
50
|
-
|
51
49
|
def push
|
52
50
|
repo.refs.push(pattern, configuration.remote) if configuration.push_refs?
|
53
51
|
end
|
data/lib/auto_tagger/recipes.rb
CHANGED
@@ -41,6 +41,11 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
+
desc %Q{Fetches tags from remote server}
|
45
|
+
task :fetch, :roles => :app do
|
46
|
+
auto_tagger.fetch
|
47
|
+
end
|
48
|
+
|
44
49
|
desc %Q{DEPRECATED: Prints the most current tags from all stages}
|
45
50
|
task :print_latest_refs, :roles => :app do
|
46
51
|
log_auto_tagger "release tag history is:"
|
data/lib/auto_tagger/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auto_tagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -20,11 +20,11 @@ authors:
|
|
20
20
|
autorequire:
|
21
21
|
bindir: bin
|
22
22
|
cert_chain: []
|
23
|
-
date: 2011-09-15 00:00:00.
|
23
|
+
date: 2011-09-15 00:00:00.000000000 Z
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: capistrano
|
27
|
-
requirement:
|
27
|
+
requirement: !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,12 @@ dependencies:
|
|
32
32
|
version: 2.5.3
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements:
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
none: false
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.5.3
|
36
41
|
description:
|
37
42
|
email: jeff@zilkey.com
|
38
43
|
executables:
|
@@ -82,6 +87,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
82
87
|
- - ! '>='
|
83
88
|
- !ruby/object:Gem::Version
|
84
89
|
version: '0'
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
hash: 2598900398828212021
|
85
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
94
|
none: false
|
87
95
|
requirements:
|
@@ -90,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
98
|
version: '0'
|
91
99
|
requirements: []
|
92
100
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.8.
|
101
|
+
rubygems_version: 1.8.25
|
94
102
|
signing_key:
|
95
103
|
specification_version: 3
|
96
104
|
summary: Helps you automatically create tags for each stage in a multi-stage deploment
|