class Kontena::Cli::Config::Account

Public Instance Methods

to_h() click to toggle source

Strip token info from master-account, the token is saved with the server.

# File lib/kontena/cli/config.rb, line 557
def to_h
  if self.name == 'master'
    super.to_h.reject do |k,_|
      [:url, :token, :refresh_token, :token_expires_at].include?(k)
    end
  else
    super
  end
end