Class: SolrMakr::Commands::ListCores Private

Inherits:
Object
  • Object
show all
Includes:
Shared
Defined in:
lib/solr_makr/commands/list_cores.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary

Attributes included from Shared

#args, #core, #options, #solr_config

Instance Method Summary collapse

Methods included from Shared

#run!, #with_message

Instance Method Details

#runObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



6
7
8
9
10
11
12
13
14
# File 'lib/solr_makr/commands/list_cores.rb', line 6

def run
  say "Listing core(s)."

  cores = solr_config.solr_status

  cores.each do |core|
    say sprintf(" * %s -- %d document(s) / %s", core.name, core.documents, core.size)
  end
end