Method: Ayadn::Status#server_error
- Defined in:
- lib/ayadn/status.rb
#server_error(bool) ⇒ Object
530 531 532 533 534 535 536 537 538 539 540 541 542 |
# File 'lib/ayadn/status.rb', line 530 def server_error(bool) if bool == true say do say_error "Ayadn couldn't get the JSON reponse" say_yellow :next, "trying again in 10 seconds" end else say do say_error "Ayadn couldn't get the JSON reponse" say_yellow :status, "Current command canceled after one retry" end end end |