Sha256: c678caeeb76803911b3166dd01c0261e0e3ba0b4a75b688deef3f6d9fa938daa

Contents?: true

Size: 345 Bytes

Versions: 153

Compression:

Stored size: 345 Bytes

Contents

module Kontena::Cli::Cloud
  class LogoutCommand < Kontena::Command
    include Kontena::Cli::Common

    def execute
      config.accounts.each do |account|        
        use_refresh_token(account)
        account.token = nil
      end
      config.write
      puts pastel.green("You have been logged out of Kontena Cloud")
    end
  end
end

Version data entries

153 entries across 153 versions & 2 rubygems

Version Path
krates-1.7.11 lib/kontena/cli/cloud/logout_command.rb
krates-1.7.10 lib/kontena/cli/cloud/logout_command.rb
krates-1.7.9 lib/kontena/cli/cloud/logout_command.rb
krates-1.7.8 lib/kontena/cli/cloud/logout_command.rb
krates-1.7.7 lib/kontena/cli/cloud/logout_command.rb
krates-1.7.6 lib/kontena/cli/cloud/logout_command.rb
krates-1.7.5 lib/kontena/cli/cloud/logout_command.rb
krates-1.7.4 lib/kontena/cli/cloud/logout_command.rb
krates-1.7.3 lib/kontena/cli/cloud/logout_command.rb
krates-1.7.2 lib/kontena/cli/cloud/logout_command.rb
krates-1.7.1 lib/kontena/cli/cloud/logout_command.rb
krates-1.7.0 lib/kontena/cli/cloud/logout_command.rb
krates-1.6.9 lib/kontena/cli/cloud/logout_command.rb
krates-1.6.8 lib/kontena/cli/cloud/logout_command.rb
krates-1.6.7 lib/kontena/cli/cloud/logout_command.rb
krates-1.6.6 lib/kontena/cli/cloud/logout_command.rb
krates-1.6.5 lib/kontena/cli/cloud/logout_command.rb
krates-1.6.4 lib/kontena/cli/cloud/logout_command.rb
krates-1.6.3 lib/kontena/cli/cloud/logout_command.rb
krates-1.6.2 lib/kontena/cli/cloud/logout_command.rb