Sha256: a9c3aa9847b8a981fe3c923de5cfa71e58706ae5a0466f14b33ba5370b46240c

Contents?: true

Size: 534 Bytes

Versions: 77

Compression:

Stored size: 534 Bytes

Contents

require 'kontena/cli/grids/common'

module Kontena::Cli::Grids::TrustedSubnets
  class ListCommand < Kontena::Command
    include Kontena::Cli::Common
    include Kontena::Cli::GridOptions
    include Kontena::Cli::Grids::Common

    # the command outputs id info only anyway, this is here strictly for ignoring purposes
    option ['-q', '--quiet'], :flag, "Output the identifying column only", hidden: true

    requires_current_master

    def execute
      Array(get_grid['trusted_subnets']).map(&method(:puts))
    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/trusted_subnets/list_command.rb
kontena-cli-1.4.1.pre1 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.3.5 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.3.5.rc1 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.rc2 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.rc1 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre14 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre13 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre12 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre11 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre10 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre9 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre8 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre7 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre6 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre5 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre4 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre3 lib/kontena/cli/grids/trusted_subnets/list_command.rb
kontena-cli-1.4.0.pre2 lib/kontena/cli/grids/trusted_subnets/list_command.rb