class Kontena::Plugin::Cloud::Token::ListCommand
Public Instance Methods
execute()
click to toggle source
# File lib/kontena/plugin/cloud/token/list_command.rb, line 7 def execute tokens = cloud_client.get('/user/personal_access_tokens')['data'] print_table(tokens) do |row| row.merge!(row['attributes']) end end
fields()
click to toggle source
# File lib/kontena/plugin/cloud/token/list_command.rb, line 14 def fields { id: 'id', created: 'created-at', name: 'name' } end