Sha256: b11838d3f67280f9c64578da6d52abd9bc3db1de62aab6857eaf1935bc63ef3e
Contents?: true
Size: 1.44 KB
Versions: 2
Compression:
Stored size: 1.44 KB
Contents
module Context 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'] end def ruby_release(context) Dir.chdir context.context_folder # gem ["push #{context.context_name}-#{GVB.version}.gem"] rake ['release'] end def ruby_install(context) Dir.chdir context.context_folder gem ['install', context.context_name] end def clean_folder(context, folder) clean_folder = get_context_folder(context, folder) puts "Clean folder #{clean_folder}" FileUtils.remove_dir(clean_folder) if Dir.exist?(clean_folder) end def ruby_clean(context) clean_folder(context, 'pkg') end def ruby_remove_gem(context) clean_folder(context, 'pkg') end def ruby_cycle(context) context.clean context.build context.commit context.patch_bump context.release puts "Waiting a little before installing" sleep(5) 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) else puts "newer version not installed for #{context_name} and version #{GVB.version}" exit 1 end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deploy-context-0.11.2 | lib/deploy-context/deploy/ruby.rb |
deploy-context-0.11.1 | lib/deploy-context/deploy/ruby.rb |