Class: UnimatrixCLI::LogoutCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/unimatrix_cli/logout_command.rb

Instance Method Summary collapse

Methods inherited from Command

available_commands, descendants, #initialize, #read_file, #validate, #validate_collection, #write

Methods included from UnimatrixParser

included

Constructor Details

This class inherits a constructor from UnimatrixCLI::Command

Instance Method Details

#executeObject



6
7
8
9
10
11
# File 'lib/unimatrix_cli/logout_command.rb', line 6

def execute
  write( message: "Logging you out." )
  delete_saved_data( Configuration.access_token_file_path )
  delete_saved_data( Configuration.environment_file_path )
  delete_saved_data( Configuration.region_file_path )
end