Skip to content

Commit 4868904

Browse files
committed
Still debugging
1 parent b1d86b3 commit 4868904

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

features/hook/step_definitions/running-a-deploy-hook-steps.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ def write_ruby_deploy_hook(callback_name, content)
8080

8181
hook = deploy_hooks_path.join("#{callback_name}.rb")
8282

83-
File.write(hook.to_s, content.to_s)
83+
f = File.open(hook.to_s, 'w')
84+
f.write(content.to_s)
85+
f.close
8486
end
8587

8688
Given %r{^my app has a (.+) ruby deploy hook$} do |callback_name|

0 commit comments

Comments
 (0)