Class: Avm::Tools::Runner::Source::Issue::Complete

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/tools/runner/source/issue/complete.rb

Instance Method Summary collapse

Instance Method Details

#help_extra_textObject



29
30
31
# File 'lib/avm/tools/runner/source/issue/complete.rb', line 29

def help_extra_text
  "Validations:\n#{doc_validations_list}"
end

#runObject



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

  clipboard_copy_tracker_message

  success('Done!')
end

#run_completeObject



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?')

  uncomplete_message('Issue was not completed')
end

#run_validateObject



33
34
35
36
37
38
# File 'lib/avm/tools/runner/source/issue/complete.rb', line 33

def run_validate
  complete.start_banner
  return true if complete.valid?

  uncomplete_message('Some validation did not pass')
end