Sha256: 433d004a80b814ef5de020542b380de65f8ee888458d965cea86f5bb6c10cc21
Contents?: true
Size: 492 Bytes
Versions: 3
Compression:
Stored size: 492 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? 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
uffizzi-cli-0.5.2 | lib/uffizzi/cli/logout.rb |
uffizzi-cli-0.5.1 | lib/uffizzi/cli/logout.rb |
uffizzi-cli-0.5.0 | lib/uffizzi/cli/logout.rb |