Sha256: a5aaee20df417ccba71aaa2184ed1d36d3a564944afe951d82b6518d9d9d1a13
Contents?: true
Size: 1.89 KB
Versions: 2
Compression:
Stored size: 1.89 KB
Contents
# frozen_string_literal: true require 'eac_ruby_base0/core_ext' module Avm module Tools class Runner class Source < ::Avm::Sources::Runner class Ruby class Bundler class GemfileLock module Git private def git_continue return unless check_capability(__method__, :git_repo, :continue) infom "Adding \"#{gemfile_lock}\"..." instance.git_repo.command('add', gemfile_lock).execute! if rebase_conflict? git_continue_run('rebase') elsif cherry_conflict? git_continue_run('cherry-pick') else raise 'Unknown how to continue' end end def git_continue_run(command) infom "\"#{command}\" --continue..." cmd = instance.git_repo.command(command, '--continue') .envvar('GIT_EDITOR', 'true') return unless !cmd.system && !conflict? fatal_error "\"#{cmd}\" failed and there is no conflict" end def git_reset_checkout return unless check_capability(__method__, :git_repo, nil) git_reset_gemfile_lock git_checkout_gemfile_lock end def git_checkout_gemfile_lock infom 'Checkouting...' instance.git_repo.command('checkout', '--', gemfile_lock).system! end def git_reset_gemfile_lock infom 'Reseting...' instance.git_repo.command('reset', gemfile_lock).system! if ::File.exist?(gemfile_lock) end end end end end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
avm-tools-0.137.0 | lib/avm/tools/runner/source/ruby/bundler/gemfile_lock/git.rb |
eac_tools-0.33.0 | sub/avm-tools/lib/avm/tools/runner/source/ruby/bundler/gemfile_lock/git.rb |