lib/deploy-context/deploy/ruby.rb in deploy-context-0.11.4 vs lib/deploy-context/deploy/ruby.rb in deploy-context-0.11.21

- old
+ new

@@ -2,11 +2,11 @@ module RubyDeployerHelper def ruby_build(context) git_build(context) Dir.chdir context.context_folder puts "Working in folder #{Dir.pwd}\nAnd context #{context.context_name} is created" - # rake ['build'] + check_folder get_context_folder(context, 'build') end def ruby_release(context) Dir.chdir context.context_folder # gem ["push #{context.context_name}-#{GVB.version}.gem"] @@ -30,17 +30,21 @@ def ruby_remove_gem(context) clean_folder(context, 'pkg') end + def ruby_check_if_available_public(context) + puts "Waiting a minute before installing" + sleep(60) + end + def ruby_cycle(context) context.clean context.build context.commit context.patch_bump - context.release(true) - puts "Waiting a minute before installing" - sleep(60) + context.release + context.wait_release_available context.install if context.test_context_successful? puts "newer version installed successfully for #{context_name} and version #{GVB.version}" context.patch_bump # patch_reset(context) \ No newline at end of file