Sha256: dc5635fc6bb3761e1d59428ac50bed90e77c3a0fe5dd29efa55104478aedc6e4
Contents?: true
Size: 568 Bytes
Versions: 3
Compression:
Stored size: 568 Bytes
Contents
class Tane::Commands::Logout < Tane::Commands::Base class << self 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 Bushido account on this computer... kind of lonesome in that way, what with just you and me and all..." end end def help_text <<-EOL Usage: tane logout Deletes the Bushido credentials from the user's `$HOME` directory. EOL end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tane-0.0.3 | lib/tane/commands/logout.rb |
tane-0.0.2 | lib/tane/commands/logout.rb |
tane-0.0.1 | lib/tane/commands/logout.rb |