Class: Avm::Git::Runners::Base::RevisionsTest

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/git/runners/base/revisions_test.rb

Instance Method Summary collapse

Instance Method Details

#runObject



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/avm/git/runners/base/revisions_test.rb', line 17

def run
  fatal_error('Repository is dirty') if runner_context.call(:git).dirty?

  return_to_branch_on_end do
    infov 'Revisions found', revisions.count
    if revision_with_error
      warn("First revision with error: #{revision_with_error}")
    else
      success('No error found in revisions')
    end
  end
end