Skip to content

Commit 7c8db73

Browse files
committed
Well, that's an interesting twist
The "ruby deploy hook with syntax errors" scenario works in 1.8.7, but not in any Travis environment with a more recent ruby. So yeah. figuring out what's up with that.
1 parent 3a1f18b commit 7c8db73

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

features/hook/running-a-deploy-hook.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ Feature: Running A Deploy Hook
229229
Given my app has a <Callback Name> ruby deploy hook
230230
But my app's <Callback Name> ruby deploy hook contains syntax errors
231231
When I run the <Callback Name> callback
232+
Then I see the output
232233
Then I see a notice about the <Callback Name> syntax error
233234
And the <Callback Name> ruby deploy hook is not executed
234235

lib/engineyard-serverside/callbacks/executor/ruby/executor.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def context_eval(input = {})
8080

8181
def validate_hook(input = {})
8282
output = `#{ruby_bin} -c #{hook_path} 2>&1`
83+
puts "hook validation output: '#{output}'"
8384
unless output =~ /Syntax OK/
8485
return Failure(
8586
input.merge(

0 commit comments

Comments
 (0)