Class: Exiter
- Inherits:
-
Object
- Object
- Exiter
- Defined in:
- lib/exiter.rb
Instance Method Summary collapse
- #exit_after_showing_help ⇒ Object
- #exit_due_to_doc_not_found ⇒ Object
- #exit_due_to_incorrect_index ⇒ Object
- #exit_due_to_net_http_fail_during_links_update ⇒ Object
- #exit_due_to_no_search_term ⇒ Object
Instance Method Details
#exit_after_showing_help ⇒ Object
18 19 20 |
# File 'lib/exiter.rb', line 18 def exit_after_showing_help exit end |
#exit_due_to_doc_not_found ⇒ Object
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_index ⇒ Object
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 |
#exit_due_to_net_http_fail_during_links_update ⇒ Object
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_term ⇒ Object
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 |