deploy_tracking 0.3.4 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deploy_tracking.rb +8 -7
- data/lib/deploy_tracking/version.rb +3 -0
- data/lib/track_deploy.rb +1 -1
- metadata +34 -16
data/lib/deploy_tracking.rb
CHANGED
@@ -4,26 +4,27 @@ configuration.load do
|
|
4
4
|
namespace :deploy_tracking do
|
5
5
|
desc "Add a new line to the Deploylog"
|
6
6
|
task :log do
|
7
|
-
current_stage = fetch
|
8
|
-
deploy_file
|
7
|
+
current_stage = fetch :stage, 'production'
|
8
|
+
deploy_file = fetch :deploy_file, 'Deploylog'
|
9
|
+
branch = fetch :branch, 'master'
|
9
10
|
git_info = `git log --oneline #{branch}|head -n 1`.chomp
|
10
|
-
|
11
|
+
|
11
12
|
File.open(deploy_file, 'a+') do |f|
|
12
13
|
f.puts "[#{release_name}] Deployed to #{current_stage} by #{me.ljust(10)} - #{branch}:#{git_info}"
|
13
14
|
end
|
14
|
-
|
15
|
+
|
15
16
|
`git add #{deploy_file} && git commit -m "Updating deploylog for deploy #{release_name}" #{deploy_file}`
|
16
17
|
end
|
17
|
-
|
18
|
+
|
18
19
|
task :mark do
|
19
20
|
put "Deployed by #{me}", "#{latest_release}/deployed_by"
|
20
21
|
end
|
21
22
|
end
|
22
|
-
|
23
|
+
|
23
24
|
before "deploy", "deploy_tracking:log"
|
24
25
|
before "deploy:finalize_update", "deploy_tracking:mark"
|
25
26
|
end
|
26
27
|
|
27
28
|
def me
|
28
29
|
"#{`whoami`.chomp}@#{`uname -n`.chomp}"
|
29
|
-
end
|
30
|
+
end
|
data/lib/track_deploy.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require 'deploy_tracking'
|
1
|
+
require 'deploy_tracking'
|
metadata
CHANGED
@@ -1,26 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy_tracking
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 15
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
- 3
|
9
8
|
- 4
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
|
-
- Jan De Poorter
|
13
|
+
- Jan De Poorter
|
14
|
+
- Joren De Groof
|
15
|
+
- Jeroen Jacobs
|
14
16
|
autorequire:
|
15
17
|
bindir: bin
|
16
18
|
cert_chain: []
|
17
19
|
|
18
|
-
date:
|
20
|
+
date: 2011-05-13 00:00:00 +02:00
|
19
21
|
default_executable:
|
20
|
-
dependencies:
|
21
|
-
|
22
|
-
|
23
|
-
|
22
|
+
dependencies:
|
23
|
+
- !ruby/object:Gem::Dependency
|
24
|
+
name: capistrano
|
25
|
+
prerelease: false
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ~>
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: 49
|
32
|
+
segments:
|
33
|
+
- 2
|
34
|
+
- 5
|
35
|
+
- 21
|
36
|
+
version: 2.5.21
|
37
|
+
type: :runtime
|
38
|
+
version_requirements: *id001
|
39
|
+
description: Tracking capistrano deploys in a deploy log file in the repository
|
40
|
+
email: devel@openminds.be
|
24
41
|
executables: []
|
25
42
|
|
26
43
|
extensions: []
|
@@ -28,15 +45,16 @@ extensions: []
|
|
28
45
|
extra_rdoc_files: []
|
29
46
|
|
30
47
|
files:
|
48
|
+
- lib/deploy_tracking/version.rb
|
31
49
|
- lib/deploy_tracking.rb
|
32
50
|
- lib/track_deploy.rb
|
33
|
-
has_rdoc:
|
34
|
-
homepage:
|
51
|
+
has_rdoc: true
|
52
|
+
homepage: http://openminds.be
|
35
53
|
licenses: []
|
36
54
|
|
37
55
|
post_install_message:
|
38
|
-
rdoc_options:
|
39
|
-
|
56
|
+
rdoc_options:
|
57
|
+
- --charset=UTF-8
|
40
58
|
require_paths:
|
41
59
|
- lib
|
42
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -60,9 +78,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
78
|
requirements: []
|
61
79
|
|
62
80
|
rubyforge_project:
|
63
|
-
rubygems_version: 1.
|
81
|
+
rubygems_version: 1.6.2
|
64
82
|
signing_key:
|
65
83
|
specification_version: 3
|
66
|
-
summary:
|
84
|
+
summary: Tracking capistrano deploys in a deploy log file in the repository
|
67
85
|
test_files: []
|
68
86
|
|