Sha256: 000a4850cdcec73111008343230268eca18fdcb8a5d44d5991dda6b859985dcc

Contents?: true

Size: 572 Bytes

Versions: 2

Compression:

Stored size: 572 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 Cloudfuji 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 Cloudfuji credentials from the user's `$HOME` directory.
EOL
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tane-0.0.5 lib/tane/commands/logout.rb
tane-0.0.4 lib/tane/commands/logout.rb