Class: Avm::Tools::Runner::Source::Issue::Complete
- Inherits:
-
Object
- Object
- Avm::Tools::Runner::Source::Issue::Complete
- Defined in:
- lib/avm/tools/runner/source/issue/complete.rb
Instance Method Summary collapse
Instance Method Details
#help_extra_text ⇒ Object
29 30 31 |
# File 'lib/avm/tools/runner/source/issue/complete.rb', line 29 def help_extra_text "Validations:\n#{doc_validations_list}" end |
#run ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/avm/tools/runner/source/issue/complete.rb', line 20 def run return unless run_validate return unless run_complete success('Done!') end |
#run_complete ⇒ Object
40 41 42 43 44 |
# File 'lib/avm/tools/runner/source/issue/complete.rb', line 40 def run_complete return complete.run if confirm?('Confirm issue completion?') ('Issue was not completed') end |
#run_validate ⇒ Object
33 34 35 36 37 38 |
# File 'lib/avm/tools/runner/source/issue/complete.rb', line 33 def run_validate complete. return true if complete.valid? ('Some validation did not pass') end |