lib/deploy-context/deploy/deployer.rb in deploy-context-2.1.35.3.g2abab85 vs lib/deploy-context/deploy/deployer.rb in deploy-context-2.1.35.3.g2abab85.16.g399fb24
- old
+ new
@@ -41,26 +41,25 @@
context.log "\nBump major version\n"
context.major_bump
true
when 'test'
context.log "\nExecute tests\n"
- context.cucumber_test(context)
- true
+ context.test_context_successful?
when 'reset'
context.log "\nReset versionning\n"
system('rake')
# context.cucumber_test(deployer)
true
else
- context.log "Unknown setting #{action}"
+ context.error_log "Unknown setting #{action}"
false
end
end
context.commit
if state_action
context.log "Action #{action} executed correctly in context #{context}"
else
- context.abort("Failed to execute action #{action} in context #{context}")
+ context.error_log("Failed to execute action #{action} in context #{context}")
end
end
end
end
end