【发布时间】:2014-03-26 19:01:47
【问题描述】:
我有一个任务来验证即将部署的构建的完整性。
我想暂停/失败部署,以防它被破坏。
task :test_build do
if something
puts "Problem with build"
#prevent deploy to continue further
end
end
after('deploy:update_code', 'test_build')
注意:项目使用railsless-deploy
【问题讨论】:
-
raise应该可以解决这个问题。
标签: ruby capistrano