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
kontena-cli-1.4.1.rc1 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.1.pre1 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.3.5 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.3.5.rc1 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.rc2 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.rc1 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre14 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre13 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre12 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre11 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre10 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre9 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre8 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre7 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre6 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre5 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre4 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre3 lib/kontena/cli/grids/users/list_command.rb
kontena-cli-1.4.0.pre2 lib/kontena/cli/grids/users/list_command.rb