Skip to content
This repository was archived by the owner on Dec 18, 2019. It is now read-only.

Commit fe8ffd8

Browse files
committedJan 16, 2015
Fixing initial stack stub template for old builds
1 parent 8f7bc9f commit fe8ffd8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎templates/stack.rb.erb

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ module Deployinator
55
include Deployinator::Helpers::<%= mustache_class %>Helpers
66

77
def <%= stack %>_production(options={})
8+
old_build = environments[0][:current_build].call
9+
810
log_and_stream "Fill in the <%= stack %>_production method in stacks/<%= stack %>.rb!<br>"
911

1012
# log the deploy
11-
log_and_shout :old_build => environments[0][:current_build].call, :build => environments[0][:next_build].call
13+
log_and_shout :old_build => old_build, :build => environments[0][:next_build].call
1214
end
1315
end
1416
end

0 commit comments

Comments
 (0)