deploy_tracking 0.3.3

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.
@@ -0,0 +1,25 @@
1
+ configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist)
2
+
3
+ configuration.load do
4
+ namespace :deploy_tracking do
5
+ desc "Add a new line to the Deploylog"
6
+ task :log do
7
+ me = "#{`whoami`.chomp}@#{`uname -n`.chomp}"
8
+ current_stage = fetch(:stage, 'production')
9
+ git_info = `git log --oneline #{branch}|head -n 1`.chomp
10
+
11
+ File.open('Deploylog', 'a+') do |f|
12
+ f.puts "[#{release_name}] Deployed to #{current_stage} by #{me.ljust(10)} - #{branch}:#{git_info}"
13
+ end
14
+
15
+ `git add Deploylog && git commit -m "Updating deploylog for deploy #{release_name}" Deploylog`
16
+ end
17
+
18
+ task :mark do
19
+ put "Deployed by #{`whoami`.chomp}@#{`uname -n`.chomp}", "#{latest_release}/deployed_by"
20
+ end
21
+ end
22
+
23
+ before "deploy", "deploy_tracking:log"
24
+ before "deploy:finalize_update", "deploy_tracking:mark"
25
+ end
@@ -0,0 +1 @@
1
+ require 'deploy_tracking'
metadata ADDED
@@ -0,0 +1,68 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: deploy_tracking
3
+ version: !ruby/object:Gem::Version
4
+ hash: 21
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 3
10
+ version: 0.3.3
11
+ platform: ruby
12
+ authors:
13
+ - Jan De Poorter - Openminds
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-08-02 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description:
23
+ email: jan@openminds.be
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - lib/deploy_tracking.rb
32
+ - lib/track_deploy.rb
33
+ has_rdoc: false
34
+ homepage:
35
+ licenses: []
36
+
37
+ post_install_message:
38
+ rdoc_options: []
39
+
40
+ require_paths:
41
+ - lib
42
+ required_ruby_version: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ hash: 3
48
+ segments:
49
+ - 0
50
+ version: "0"
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ hash: 3
57
+ segments:
58
+ - 0
59
+ version: "0"
60
+ requirements: []
61
+
62
+ rubyforge_project:
63
+ rubygems_version: 1.3.7
64
+ signing_key:
65
+ specification_version: 3
66
+ summary: Keep a deploy log file
67
+ test_files: []
68
+