Sha256: 42dcc612d076bb69b792d4cb3f119d3872ae21b57b93bf1353178cda4c13fdd9

Contents?: true

Size: 463 Bytes

Versions: 77

Compression:

Stored size: 463 Bytes

Contents

require_relative '../common'

module Kontena::Cli::Grids::Users
  class ListCommand < Kontena::Command
    include Kontena::Cli::Common
    include Kontena::Cli::Grids::Common
    include Kontena::Cli::TableGenerator::Helper
    include Kontena::Cli::GridOptions

    requires_current_master

    def fields
      quiet? ? %w(email) : %w(email name)
    end

    def execute
      print_table(client.get("grids/#{current_grid}/users")['users'])
    end
  end
end

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
krates-1.7.11 lib/kontena/cli/grids/users/list_command.rb
krates-1.7.10 lib/kontena/cli/grids/users/list_command.rb
krates-1.7.9 lib/kontena/cli/grids/users/list_command.rb
krates-1.7.8 lib/kontena/cli/grids/users/list_command.rb
krates-1.7.7 lib/kontena/cli/grids/users/list_command.rb
krates-1.7.6 lib/kontena/cli/grids/users/list_command.rb
krates-1.7.5 lib/kontena/cli/grids/users/list_command.rb
krates-1.7.4 lib/kontena/cli/grids/users/list_command.rb
krates-1.7.3 lib/kontena/cli/grids/users/list_command.rb
krates-1.7.2 lib/kontena/cli/grids/users/list_command.rb
krates-1.7.1 lib/kontena/cli/grids/users/list_command.rb
krates-1.7.0 lib/kontena/cli/grids/users/list_command.rb
krates-1.6.9 lib/kontena/cli/grids/users/list_command.rb
krates-1.6.8 lib/kontena/cli/grids/users/list_command.rb
krates-1.6.7 lib/kontena/cli/grids/users/list_command.rb
krates-1.6.6 lib/kontena/cli/grids/users/list_command.rb
krates-1.6.5 lib/kontena/cli/grids/users/list_command.rb
krates-1.6.4 lib/kontena/cli/grids/users/list_command.rb
krates-1.6.3 lib/kontena/cli/grids/users/list_command.rb
krates-1.6.2 lib/kontena/cli/grids/users/list_command.rb