Sha256: c966d61215b6eb31e923dcfc374e348b941de3ea6a3c5824011388d93940cfad

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

# encoding: utf-8

require 'terminal-table'

require_relative '../../downloaders/downloaders'

DOWNLOADERS = Jetel::Downloaders.downloaders

desc 'Print downloaders info'
command :downloaders do |c|
  c.action do |_global_options, _options, _args|
    rows = DOWNLOADERS.map do |m|
      [m[:name], m[:klass]]
    end

    table = Terminal::Table.new :headings => %w(Name Class), :rows => rows
    puts table
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jetel-0.0.15 lib/jetel/cli/cmd/downloaders_cmd.rb
jetel-0.0.14 lib/jetel/cli/cmd/downloaders_cmd.rb
jetel-0.0.12 lib/jetel/cli/cmd/downloaders_cmd.rb
jetel-0.0.11 lib/jetel/cli/cmd/downloaders_cmd.rb