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
28 29 30 |
# File 'lib/avm/tools/runner/source/issue/complete.rb', line 28 def help_extra_text "Validations:\n#{doc_validations_list}" end |
#run ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/avm/tools/runner/source/issue/complete.rb', line 19 def run return unless run_validate return unless run_complete success('Done!') end |
#run_complete ⇒ Object
39 40 41 42 43 |
# File 'lib/avm/tools/runner/source/issue/complete.rb', line 39 def run_complete return complete.run if confirm?('Confirm issue completion?') ('Issue was not completed') end |
#run_validate ⇒ Object
32 33 34 35 36 37 |
# File 'lib/avm/tools/runner/source/issue/complete.rb', line 32 def run_validate complete. return true if complete.valid? ('Some validation did not pass') end |