Sha256: 744a0b29c6607495f24aaef8189a704ff6a543c93d674fbd03961264d7655975

Contents?: true

Size: 409 Bytes

Versions: 19

Compression:

Stored size: 409 Bytes

Contents

module Sunspot
  class Installer
    module TaskHelper
      def say(message)
        if @verbose
          STDOUT.puts(message)
        end
      end

      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
    end
  end
end

Version data entries

19 entries across 19 versions & 7 rubygems

Version Path
pduey-sunspot-1.2.1.1 lib/sunspot/installer/task_helper.rb
erichummel-sunspot-1.2.1g lib/sunspot/installer/task_helper.rb
erichummel-sunspot-1.2.1f lib/sunspot/installer/task_helper.rb
erichummel-sunspot-1.2.1b lib/sunspot/installer/task_helper.rb
erichummel-sunspot-1.2.1a lib/sunspot/installer/task_helper.rb
erichummel-sunspot-1.2.1 lib/sunspot/installer/task_helper.rb
lisausa-sunspot-1.2.1.1 lib/sunspot/installer/task_helper.rb
lisausa-sunspot-1.2.1 lib/sunspot/installer/task_helper.rb
sunspot_rbg-1.3.1 lib/sunspot/installer/task_helper.rb
sunspot_rbg-1.3.0 lib/sunspot/installer/task_helper.rb
ruben-sunspot-1.1.4 lib/sunspot/installer/task_helper.rb
ruben-sunspot-1.1.3 lib/sunspot/installer/task_helper.rb
ruben-sunspot-1.1.2 lib/sunspot/installer/task_helper.rb
sunspot-1.2.1 lib/sunspot/installer/task_helper.rb
sunspot-1.2.0 lib/sunspot/installer/task_helper.rb
ruben-sunspot-1.1.1 lib/sunspot/installer/task_helper.rb
ruben-sunspot-1.1.0 lib/sunspot/installer/task_helper.rb
nuatt_sunspot-1.1.0.3 lib/sunspot/installer/task_helper.rb
sunspot-1.1.0 lib/sunspot/installer/task_helper.rb