Sha256: 2d468790983454bf982a70741c9763d2dacb7001572d731efef8c3f076964185
Contents?: true
Size: 539 Bytes
Versions: 32
Compression:
Stored size: 539 Bytes
Contents
module Kontena::Cli::ExternalRegistries class ListCommand < Clamp::Command include Kontena::Cli::Common include Kontena::Cli::GridOptions def execute require_api_url require_current_grid token = require_token result = client(token).get("grids/#{current_grid}/external_registries") puts "%-30s %-20s %-30s" % ['Name', 'Username', 'Email'] result['external_registries'].each { |r| puts "%-30.30s %-20.20s %-30.30s" % [r['name'], r['username'], r['email']] } end end end
Version data entries
32 entries across 32 versions & 1 rubygems