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
krates-1.7.11 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.7.10 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.7.9 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.7.8 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.7.7 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.7.6 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.7.5 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.7.4 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.7.3 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.7.2 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.7.1 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.7.0 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.6.9 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.6.8 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.6.7 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.6.6 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.6.5 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.6.4 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.6.3 lib/kontena/cli/grids/trusted_subnets/list_command.rb
krates-1.6.2 lib/kontena/cli/grids/trusted_subnets/list_command.rb