Class: Exiter

Inherits:
Object
  • Object
show all
Defined in:
lib/exiter.rb

Instance Method Summary collapse

Instance Method Details

#exit_after_showing_helpObject



18
19
20
# File 'lib/exiter.rb', line 18

def exit_after_showing_help
  exit
end

#exit_due_to_doc_not_foundObject



6
7
8
# File 'lib/exiter.rb', line 6

def exit_due_to_doc_not_found
  abort "Sorry. It looks like we couldn't find what you were looking for".red
end

#exit_due_to_incorrect_indexObject



10
11
12
# File 'lib/exiter.rb', line 10

def exit_due_to_incorrect_index
  abort "Sorry. It looks like you didn't enter the correct index".red
end


14
15
16
# File 'lib/exiter.rb', line 14

def exit_due_to_net_http_fail_during_links_update
  exit
end

#exit_due_to_no_search_termObject



2
3
4
# File 'lib/exiter.rb', line 2

def exit_due_to_no_search_term
  abort "You need to provide something to search for".red
end