uhl-cap-recipes 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 8
4
+ :patch: 9
5
5
  :build:
@@ -132,6 +132,7 @@ Capistrano::Configuration.instance(true).load do |configuration|
132
132
  else
133
133
  run pull_repository_remote_command(branch)
134
134
  end
135
+ run record_git_reversion_command
135
136
  end
136
137
 
137
138
  desc "register servers and deploy_dir on CMDB"
@@ -211,6 +212,13 @@ Capistrano::Configuration.instance(true).load do |configuration|
211
212
  ].join("; ")
212
213
  end
213
214
 
215
+ def self.record_git_reversion_command()
216
+ [
217
+ "cd #{deploy_to_gitrepo}",
218
+ "echo \"$(date +"%Y-%m-%d %H:%M:%S") $(git log --pretty -1 | awk '/^commit/{print $2}')\" >> #{deploy_to}/#{application}_reversion",
219
+ ].join("; ")
220
+ end
221
+
214
222
  end
215
223
 
216
224
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "uhl-cap-recipes"
8
- s.version = "0.1.8"
8
+ s.version = "0.1.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["crazycode"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uhl-cap-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: