class Kontena::Plugin::Cloud::Platform::User::ListCommand
Public Instance Methods
execute()
click to toggle source
# File lib/kontena/plugin/cloud/platform/user/list_command.rb, line 12 def execute require_platform(name) platform = find_platform_by_name(current_grid, current_organization) platform_users = cloud_client.get("/organizations/#{current_organization}/platforms/#{platform.id}/relationships/users")['data'] print_table(platform_users) do |row| row.merge!(row['attributes'].merge(row['meta'])) end end
fields()
click to toggle source
# File lib/kontena/plugin/cloud/platform/user/list_command.rb, line 21 def fields { username: 'username', role: 'role' } end