Sha256: 65b488f86506812e6fc8c8f9f46ad68fff7055e8179a9b95668cc4c8c9a09200
Contents?: true
Size: 911 Bytes
Versions: 6
Compression:
Stored size: 911 Bytes
Contents
module Context module GitDeployerHelper def git_build(context) Dir.chdir File.dirname(context.context_folder) puts "Building ruby from folder #{context.context_folder}" if ::Dir.exist?(context.context_folder) git ['pull'] else git ["clone git@github.com:JimboDragonGit/#{context.context_name}.git"] unless ::Dir.exist?(context.context_folder) end end def git_commit(context) Dir.chdir context.context_folder git ['add .'] git ["commit -m 'Create #{context.context_name} automatic commit'"] end def git_release(context) Dir.chdir context.context_folder git ['push', '--follow-tags'] end def git_bump(context, level) Dir.chdir context.context_folder git ['version-bump', level] end def patch_reset(context) git_bump(context, 'minor') git_commit(context) end end end
Version data entries
6 entries across 6 versions & 1 rubygems