1
我有一个任务验证即将部署的构建的完整性。如何从任务中停止Capistrano部署
我想暂停/失败部署,以防万一它被破坏。
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'应该为此工作。 – engineersmnky