Sha256: e26da89766f309edab2448f80010b9b3bf5a5acdc54647ca8ce9adfafdeb8b28

Contents?: true

Size: 746 Bytes

Versions: 25

Compression:

Stored size: 746 Bytes

Contents

%w(task_helper library_installer schema_builder solrconfig_updater).each do |file|
  require File.join(File.dirname(__FILE__), 'installer', file)
end

module Sunspot
  class Installer
    class <<self
      def execute(solr_home, options = {})
        new(solr_home, options).execute
      end

      private :new
    end

    def initialize(solr_home, options)
      @solr_home, @options = solr_home, options
    end

    def execute
      SchemaBuilder.execute(
        File.join(@solr_home, 'conf', 'schema.xml'),
        @options
      )
      SolrconfigUpdater.execute(
        File.join(@solr_home, 'conf', 'solrconfig.xml'),
        @options
      )
      LibraryInstaller.execute(File.join(@solr_home, 'lib'), @options)
    end
  end
end

Version data entries

25 entries across 25 versions & 7 rubygems

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