Sha256: 9e1ea542078a3ed523e91edee20054c5112f14633e77e8d9144e6b72419d8977
Contents?: true
Size: 451 Bytes
Versions: 26
Compression:
Stored size: 451 Bytes
Contents
require_relative 'common' module Kontena::Cli::Grids class ListUsersCommand < Clamp::Command include Kontena::Cli::Common include Common def execute require_api_url token = require_token result = client(token).get("grids/#{current_grid}/users") puts "%-40s %-40s" % ['Email', 'Name'] result['users'].each { |user| puts "%-40.40s %-40.40s" % [user['email'], user['name']] } end end end
Version data entries
26 entries across 26 versions & 1 rubygems