libraries/deploy-context/deploy/git.rb in deploy-context-2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8.4.gbb2ab14.12.g0bc028d vs libraries/deploy-context/deploy/git.rb in deploy-context-2.13.0
- old
+ new
@@ -7,43 +7,45 @@
def git_build(context)
if context.present_localy?
Dir.chdir(context.context_folder)
context.git_pull(context)
+ true
else
context.error_log context.context_name, "Cloning from source in #{Dir.pwd}"
local_dir = File.join(Dir.pwd, context.context_name)
context.git context, ["clone git@github.com:JimboDragonGit/#{context.context_name}.git"] unless ::Dir.exist?(local_dir)
context.move_folder(local_dir)
+ true
end
end
def git_pull(context)
context.git_build(context) unless context.actual_working_directory?
- context.git context, %w(pull)
+ log "Git pull result: #{context.git context, %w(pull)}"
end
def git_commit(context)
context.git_build(context)
context.git context, ['add .']
context.git context, ["commit -m 'Create #{context.context_name} automatic commit'"]
end
- def git_release(context)
- context.git_build(context)
- context.git context, ['push', '--follow-tags']
- end
+ # def git_release(context)
+ # context.git_build(context)
+ # context.git context, ['push', '--follow-tags']
+ # end
- def git_bump(context, level)
- context.git_build(context)
- context.git context, ['version-bump', level]
- context.git_commit(context)
- end
+ # def git_bump(context, level)
+ # context.git_build(context)
+ # context.git context, ['version-bump', level]
+ # context.git_commit(context)
+ # end
- def patch_reset(context)
- context.git_build(context)
- context.git_bump(context, 'minor')
- end
+ # def patch_reset(context)
+ # context.git_build(context)
+ # context.git_bump(context, 'minor')
+ # end
def git_update_available?(context)
context.git_build(context)
# context.git ['log', "v#{context.version}"]
context.git context, ['ls-remote origin', "v#{context.version}"]
\ No newline at end of file