lib/deploy-context/context/deploy.rb in deploy-context-2.1.19.1.g26a2b55.1.g5ba21a1 vs lib/deploy-context/context/deploy.rb in deploy-context-2.1.19.1.g26a2b55.1.g5ba21a1.1.g32592ad

- old
+ new

@@ -39,43 +39,43 @@ else case action when 'once' puts "\nExecute only once\n" context.cycle - false + true when 'always' puts "\nAlways in execution\n" while true do context.cycle end - false + true when 'bump' puts "\nBump minor version\n" context.patch_bump - context.commit - false + true when 'release' puts "\nBump major version\n" context.minor_bump - false + true when 'upgrade' puts "\nBump major version\n" context.major_bump - false + true when 'test' puts "\nExecute tests\n" context.cucumber_test(context) - false + true when 'reset' puts "\nReset versionning\n" system('rake') # context.cucumber_test(deployer) - false + true else puts "Unknown setting #{action}" false end end + context.commit if state_action puts "Action #{action} executed correctly in context #{context}" else abort("Failed to execute action #{action} in context #{context}") end