crushserver 0.3.5 → 0.3.6
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.
- data/VERSION.yml +1 -1
- data/crushserver.gemspec +1 -1
- data/lib/crushserver/recipes.rb +4 -6
- metadata +3 -3
data/VERSION.yml
CHANGED
data/crushserver.gemspec
CHANGED
data/lib/crushserver/recipes.rb
CHANGED
@@ -91,10 +91,10 @@ HERE
|
|
91
91
|
result = String.new
|
92
92
|
begin
|
93
93
|
current, previous, latest = current_revision[0,7], previous_revision[0,7], real_revision[0,7]
|
94
|
-
result << "===== Master Revision:
|
95
|
-
result << "===== [
|
96
|
-
result << "=== Deployed Revision:
|
97
|
-
result << "=== Previous Revision:
|
94
|
+
result << "===== Master Revision: #{latest}\n\n"
|
95
|
+
result << "===== [ #{application} - #{stage} ]\n"
|
96
|
+
result << "=== Deployed Revision: #{current}\n"
|
97
|
+
result << "=== Previous Revision: #{previous}\n"
|
98
98
|
|
99
99
|
# If deployed and master are the same, show the difference between the last 2 deployments.
|
100
100
|
base_label, new_label, base_rev, new_rev = latest != current ? \
|
@@ -103,8 +103,6 @@ HERE
|
|
103
103
|
|
104
104
|
# Show difference between master and deployed revisions.
|
105
105
|
if (diff = `git log #{base_rev}..#{new_rev} --oneline`) != ""
|
106
|
-
# Colorize refs
|
107
|
-
diff.gsub!(/^([a-f0-9]+) /, "\033[1;32m\\1\033[0m - ")
|
108
106
|
diff = " " << diff.gsub("\n", "\n ") << "\n"
|
109
107
|
# Indent commit messages nicely, max 80 chars per line, line has to end with space.
|
110
108
|
diff = diff.split("\n").map{|l|l.scan(/.{1,120}/).join("\n"<<" "*14).gsub(/([^ ]*)\n {14}/m,"\n"<<" "*14<<"\\1")}.join("\n")
|
metadata
CHANGED