Method: Spaceship::Client#load_session_from_file

Defined in:
spaceship/lib/spaceship/client.rb

#load_session_from_fileObject



627
628
629
630
631
632
633
634
635
636
637
638
639
# File 'spaceship/lib/spaceship/client.rb', line 627

def load_session_from_file
  begin
    if File.exist?(persistent_cookie_path)
      puts("Loading session from '#{persistent_cookie_path}'") if Spaceship::Globals.verbose?
      @cookie.load(persistent_cookie_path)
      return true
    end
  rescue => ex
    puts(ex.to_s)
    puts("Continuing with normal login.")
  end
  return false
end