Module: Sunspot::Installer::TaskHelper
- Included in:
- SchemaBuilder, SolrconfigUpdater
- Defined in:
- lib/sunspot/installer/task_helper.rb
Instance Method Summary collapse
Instance Method Details
#add_element(node, name, attributes = {}) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/sunspot/installer/task_helper.rb', line 10 def add_element(node, name, attributes = {}) new_node = Nokogiri::XML::Node.new(name, @document) attributes.each_pair { |name, value| new_node[name.to_s] = value } node << new_node new_node end |
#say(message) ⇒ Object
4 5 6 7 8 |
# File 'lib/sunspot/installer/task_helper.rb', line 4 def say() if @verbose STDOUT.puts() end end |