Class: SolrMakr::Configsets::LookupDependentCollections
- Inherits:
-
ActiveInteraction::Base
- Object
- ActiveInteraction::Base
- SolrMakr::Configsets::LookupDependentCollections
- Includes:
- SolrMakr::Commands::AbstractCommand
- Defined in:
- lib/solr_makr/configsets/lookup_dependent_collections.rb
Constant Summary
Constants included from Utility
Instance Attribute Summary
Attributes included from BufferInteraction
Instance Method Summary collapse
Methods included from SolrMakr::Commands::AbstractCommand
#expect_success!, #fetch_configset, #local_configuration
Methods included from Utility
default_table, default_table_options!, hash_to_table, looks_like_a_valid_configset?, path_to_configset
Methods included from BufferInteraction
#build_buffer, #compose_buffer
Instance Method Details
#execute ⇒ <String>
9 10 11 12 13 14 15 16 17 |
# File 'lib/solr_makr/configsets/lookup_dependent_collections.rb', line 9 def execute cluster_status = solr_client.cluster_status cluster_collections = cluster_status.dig(:cluster, :collections) cluster_collections.each_with_object([]) do |(key, info), keys| keys << key if info[:configName] == name end end |