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 +1 -1
- data/lib/cap_recipes/tasks/uhljenkins.rb +8 -0
- data/uhl-cap-recipes.gemspec +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -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
|
data/uhl-cap-recipes.gemspec
CHANGED