Class: Sfctl::Commands::Auth::Bye
- Inherits:
-
Sfctl::Command
- Object
- Sfctl::Command
- Sfctl::Commands::Auth::Bye
- Defined in:
- lib/sfctl/commands/auth/bye.rb
Constant Summary
Constants inherited from Sfctl::Command
Sfctl::Command::CONFIG_FILENAME, Sfctl::Command::CONFIG_PATH, Sfctl::Command::HARVEST_PROVIDER, Sfctl::Command::LINK_CONFIG_FILENAME, Sfctl::Command::LINK_CONFIG_PATH, Sfctl::Command::PROVIDERS_LIST, Sfctl::Command::TOGGL_PROVIDER
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ Bye
constructor
A new instance of Bye.
Methods inherited from Sfctl::Command
#access_token, #command, #config, #config_present?, #link_config_present?, #read_config, #read_link_config, #save_config!, #save_link_config!
Constructor Details
#initialize ⇒ Bye
Returns a new instance of Bye.
11 |
# File 'lib/sfctl/commands/auth/bye.rb', line 11 def initialize(*); end |
Instance Method Details
#execute ⇒ Object
13 14 15 16 |
# File 'lib/sfctl/commands/auth/bye.rb', line 13 def execute(*) prompt = ::TTY::Prompt.new reset_config! if prompt.yes?('Are you sure?') end |