Sha256: 39b5e6341520a99bcddeb5e0dcea6a7c8d21f4fe2d21bef3c741cde84111d12d
Contents?: true
Size: 486 Bytes
Versions: 4
Compression:
Stored size: 486 Bytes
Contents
# frozen_string_literal: true require 'uffizzi' require 'uffizzi/auth_helper' module Uffizzi class Cli::Logout include ApiClient def initialize(options) @options = options end def run return Uffizzi.ui.say('You are not logged in') unless Uffizzi::AuthHelper.signed_in? server = ConfigFile.read_option(:server) destroy_session(server) ConfigFile.delete Uffizzi.ui.say('You have been successfully logged out') end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
uffizzi-cli-0.9.0 | lib/uffizzi/cli/logout.rb |
uffizzi-cli-0.8.0 | lib/uffizzi/cli/logout.rb |
uffizzi-cli-0.7.3 | lib/uffizzi/cli/logout.rb |
uffizzi-cli-0.7.2 | lib/uffizzi/cli/logout.rb |