Sha256: fe27d6c51fd1d91b0066b3778c76572977f6907f6c8abdadc74ab40c39f9e28d
Contents?: true
Size: 660 Bytes
Versions: 53
Compression:
Stored size: 660 Bytes
Contents
require 'kontena/plugin_manager' require_relative 'common' module Kontena::Cli::Plugins class ListCommand < Kontena::Command include Kontena::Cli::Common include Kontena::Cli::TableGenerator::Helper include Common include Kontena::PluginManager::Common banner "List installed plugins" def fields quiet? ? [:name] : %i(name version description) end def plugin_list plugins.map do |plugin| { name: short_name(plugin.name), version: plugin.version, description: plugin.description } end end def execute print_table(plugin_list) end end end
Version data entries
53 entries across 53 versions & 2 rubygems