class FIS::CLI::Commands::Logout

`auth logout` - Removes the user's authentication credentials

Public Class Methods

new(options) click to toggle source
# File lib/fis/cli/commands/logout.rb, line 8
def initialize(options)
  @options = options
end

Public Instance Methods

execute() click to toggle source
# File lib/fis/cli/commands/logout.rb, line 12
def execute
  FIS.config.unset(:identity, :portal, :token)

  FIS.ui.newline
  FIS.ui.ok('You\'ve successfully logged out.')
end