Sha256: a0edf55ce16e6041bbb2a5e25c326d7de685aba6420f00637da1175186169222

Contents?: true

Size: 360 Bytes

Versions: 54

Compression:

Stored size: 360 Bytes

Contents

require_relative 'common'

module Kontena::Cli::Grids
  class ShowCommand < Clamp::Command
    include Kontena::Cli::Common
    include Common

    parameter "NAME", "Grid name"

    def execute
      require_api_url

      grid = find_grid_by_name(name)
      abort("Grid not found".colorize(:red)) unless grid
      
      print_grid(grid)
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
kontena-cli-0.14.1 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.14.0 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.13.4 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.13.3 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.13.2 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.13.1 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.13.0.1 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.13.0 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.12.3 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.12.2 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.12.1 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.12.0 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.11.7 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.11.6 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.11.5 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.11.4 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.11.3 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.11.2 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.11.1 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.11.0 lib/kontena/cli/grids/show_command.rb