lib/deploy-context/deploy/ruby.rb in deploy-context-0.11.42 vs lib/deploy-context/deploy/ruby.rb in deploy-context-0.11.44

- old
+ new

@@ -36,23 +36,27 @@ puts "Waiting a minute before installing" sleep(60) end def ruby_cycle(context) - context.clean - context.build - context.commit - context.patch_bump - context.release - context.wait_until_release_available - context.install - if context.test_context_successful? - puts "newer version installed successfully for #{context.context_name} and version #{context.version}" + if context.new_update_available? + context.clean + context.build + context.commit context.patch_bump - # patch_reset(context) + context.release + context.wait_until_release_available + context.install + if context.test_context_successful? + puts "newer version installed successfully for #{context.context_name} and version #{context.version}" + context.patch_bump + # patch_reset(context) + else + puts "newer version not installed for #{context.context_name} and version #{context.version}" + exit 1 + end else - puts "newer version not installed for #{context.context_name} and version #{context.version}" - exit 1 + puts "No update available" end end end end \ No newline at end of file