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



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

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

#runObject



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

  clipboard_copy_tracker_message

  success('Done!')
end

#run_completeObject



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

  uncomplete_message('Issue was not completed')
end

#run_validateObject



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

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

  uncomplete_message('Some validation did not pass')
end