Method: Kontena::Cli::Config#kontena_account_hash
- Defined in:
- lib/kontena/cli/config.rb
#kontena_account_hash ⇒ Object
Returns a cleaned up version of the kontena account data with only the token and name.
484 485 486 487 488 489 490 491 492 |
# File 'lib/kontena/cli/config.rb', line 484 def kontena_account_hash hash = { name: 'kontena' } acc = find_account('kontena') if acc && acc.token hash[:username] = acc.username if acc.username hash.merge!(acc.token.to_h) end hash end |