Sha256: 1a4d099e57f9d804bc54f8af72240aecdcd689df2c8de6ffee660b7fee80274b

Contents?: true

Size: 398 Bytes

Versions: 83

Compression:

Stored size: 398 Bytes

Contents

namespace :schema do
  desc 'Generate schema from template'
  task :compile do
    require File.join(File.dirname(__FILE__), '..', 'lib', 'sunspot', 'schema')
    File.open(
      File.join(
        File.dirname(__FILE__),
        '..',
        'solr',
        'solr',
        'conf',
        'schema.xml'
    ),
      'w'
    ) do |file|
      file << Sunspot::Schema.new.to_xml
    end
  end
end

Version data entries

83 entries across 83 versions & 15 rubygems

Version Path
sunspot-2.7.1 tasks/schema.rake
sunspot-2.7.0 tasks/schema.rake
sunspot-2.6.0 tasks/schema.rake
sunspot-2.5.0 tasks/schema.rake
sunspot-2.4.0 tasks/schema.rake
sunspot-2.3.0 tasks/schema.rake
sunspot-2.2.8 tasks/schema.rake
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/sunspot-2.2.7/tasks/schema.rake
sunspot-2.2.7 tasks/schema.rake
sunspot-2.2.6 tasks/schema.rake
sunspot-2.2.5 tasks/schema.rake
sunspot-2.2.4 tasks/schema.rake
sunspot-2.2.3 tasks/schema.rake
sunspot-2.2.2 tasks/schema.rake
sunspot-2.2.1 tasks/schema.rake
sunspot-2.2.0 tasks/schema.rake
benjaminkrause-sunspot-0.9.7 tasks/schema.rake
benjaminkrause-sunspot-0.9.8 tasks/schema.rake
sunspot-2.1.1 tasks/schema.rake
sunspot-2.1.0 tasks/schema.rake