Sha256: 62f4ff8d43a1667f0f0bbe4b0ef3f21474e8553ade4729ad97b4eb230104deb9

Contents?: true

Size: 362 Bytes

Versions: 5

Compression:

Stored size: 362 Bytes

Contents

require_relative 'common'

module Kontena::Cli::Grids
  class ShowCommand < Kontena::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

5 entries across 5 versions & 1 rubygems

Version Path
kontena-cli-0.16.0.pre5 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.16.0.pre4 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.16.0.pre3 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.16.0.pre2 lib/kontena/cli/grids/show_command.rb
kontena-cli-0.16.0.pre1 lib/kontena/cli/grids/show_command.rb