class Ey::Core::Cli::Logout

Public Instance Methods

handle() click to toggle source
# File lib/ey-core/cli/logout.rb, line 10
def handle
  if core_yaml[core_url]
    core_yaml.delete(core_url)
    write_core_yaml
    puts "Successfully removed API token from credentials file".green
  else
    puts "No API token found".yellow
  end
end