Sha256: cfd00074d6c3593556628a5f73dd294b514e63f1b2d974b149a5f3ebc0cd1dcc
Contents?: true
Size: 451 Bytes
Versions: 6
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true require 'io/console' require 'uffizzi' require 'uffizzi/auth_helper' module Uffizzi class CLI::Logout include ApiClient def run return Uffizzi.ui.say('You are not logged in') unless Uffizzi::AuthHelper.signed_in? hostname = ConfigFile.read_option(:hostname) destroy_session(hostname) ConfigFile.delete Uffizzi.ui.say('You have been successfully logged out') end end end
Version data entries
6 entries across 6 versions & 1 rubygems