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 =
"Test multiple revisions until a error is found.\n\nUsage:\n __PROGRAM__ [options]\n __PROGRAM__ -h | --help\n\nOptions:\n -h --help Mostra esta ajuda.\n -c --command=<test-command> Command to test instance.\n -n --no-cache Does not use cache.\n"
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 |