class Sfctl::Commands::Auth::Bye
Public Class Methods
new(*)
click to toggle source
# File lib/sfctl/commands/auth/bye.rb, line 11 def initialize(*); end
Public Instance Methods
execute(*)
click to toggle source
# File lib/sfctl/commands/auth/bye.rb, line 13 def execute(*) prompt = ::TTY::Prompt.new reset_config! if prompt.yes?('Are you sure?') end
Private Instance Methods
reset_config!()
click to toggle source
# File lib/sfctl/commands/auth/bye.rb, line 20 def reset_config! ::TTY::File.remove_file CONFIG_PATH end