Method: Spaceship::Client#exit_with_session_state
- Defined in:
- spaceship/lib/spaceship/client.rb
#exit_with_session_state(user, has_valid_session) ⇒ Object
This method is used to log if the session is valid or not and then exit It is called when the ‘–check_session` flag is passed
594 595 596 597 |
# File 'spaceship/lib/spaceship/client.rb', line 594 def exit_with_session_state(user, has_valid_session) puts("#{has_valid_session ? 'Valid' : 'No valid'} session found (#{user}). Exiting.") exit(has_valid_session) end |