class SolrMakr::Commands::FetchCollectionList

Public Instance Methods

execute() click to toggle source
# File lib/solr_makr/commands/fetch_collection_list.rb, line 6
def execute
  response = solr_client.list

  collections = response.array(:collections).map do |name|
    SolrMakr::Collection.new name: name
  end

  buffer.print default_table(collection: collections, headings: %w[Collection Managed?], if_blank: 'No collections.')
end