Class: Tane::Commands::Logout
Class Method Summary collapse
Methods inherited from Base
Methods included from Helpers
Class Method Details
.help_text ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/tane/commands/logout.rb', line 14 def help_text "Usage:\n\ntane logout\n\nDeletes the Cloudfuji credentials from the user's `$HOME` directory.\n" end |
.process(args) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/tane/commands/logout.rb', line 3 def process(args) if logged_in? term.say "Logging out #{username} from this computer..." destroy_credentials term.say "Finished! All gone! Buh bye!" else term.say "Couldn't find any Cloudfuji account on this computer... kind of lonesome in that way, what with just you and me and all..." end end |