Class: Avm::Tools::Runner::Git::RevisionsTest
- Inherits:
-
EacRubyUtils::Console::DocoptRunner
- Object
- EacRubyUtils::Console::DocoptRunner
- Avm::Tools::Runner::Git::RevisionsTest
- Defined in:
- lib/avm/tools/runner/git/revisions_test.rb
Constant Summary collapse
- DOC =
<<~DOCOPT Test multiple revisions until a error is found. Usage: __PROGRAM__ [options] __PROGRAM__ -h | --help Options: -h --help Mostra esta ajuda. -c --command=<test-command> Command to test instance. -n --no-cache Does not use cache. DOCOPT
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/avm/tools/runner/git/revisions_test.rb', line 28 def run fatal_error('Repository is dirty') if context(: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 |