Class: SolrMakr::Configsets::PushToZookeeper

Inherits:
ActiveInteraction::Base
  • Object
show all
Defined in:
lib/solr_makr/configsets/push_to_zookeeper.rb

Instance Method Summary collapse

Instance Method Details

#executevoid

This method returns an undefined value.



9
10
11
12
13
14
15
16
# File 'lib/solr_makr/configsets/push_to_zookeeper.rb', line 9

def execute
  SolrMakr.with_zookeeper do |client|
    directory.nodes.each do |node|
      client.mkdir_p node.full_name(prefix: "/configs/#{name}"),
        data: node.content, persistent: true
    end
  end
end