class GitProc::Sync

Public Class Methods

new(base, opts) click to toggle source
Calls superclass method GitProc::Process::new
# File lib/git-process/sync_process.rb, line 23
def initialize(base, opts)
  super

  @opts = opts

  self
end

Public Instance Methods

cleanup() click to toggle source
# File lib/git-process/sync_process.rb, line 44
def cleanup
  gitlib.stash_pop if @stash_pushed
end
runner() click to toggle source
# File lib/git-process/sync_process.rb, line 49
def runner
  GitProc::Syncer.do_sync(gitlib, @opts)
end
verify_preconditions() click to toggle source

noinspection RubyControlFlowConversionInspection

Calls superclass method GitProc::Process#verify_preconditions
# File lib/git-process/sync_process.rb, line 33
def verify_preconditions
  super

  if not gitlib.status.clean?
    GitProc::ChangeFileHelper.new(gitlib).offer_to_help_uncommitted_changes
  end

  raise ParkedChangesError.new(self) if gitlib.is_parked?
end