Sha256: 3899afbf517b3cb96705ebc940021b2796a394c78ca94c362db07902c414a126

Contents?: true

Size: 402 Bytes

Versions: 17

Compression:

Stored size: 402 Bytes

Contents

namespace :schema do
  desc 'Compile schema from Haml 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

17 entries across 17 versions & 6 rubygems

Version Path
Chrononaut-sunspot-client-0.9.4 tasks/schema.rake
UnderpantsGnome-sunspot-0.9.1.1 tasks/schema.rake
UnderpantsGnome-sunspot-0.9.8.1 tasks/schema.rake
kristopher-sunspot-0.9.8 tasks/schema.rake
kuahyeow-sunspot-0.9.7 tasks/schema.rake
kuahyeow-sunspot-0.9.8 tasks/schema.rake
outoftime-sunspot-0.9.0 tasks/schema.rake
outoftime-sunspot-0.9.1 tasks/schema.rake
outoftime-sunspot-0.9.2 tasks/schema.rake
outoftime-sunspot-0.9.3 tasks/schema.rake
outoftime-sunspot-0.9.4 tasks/schema.rake
outoftime-sunspot-0.9.5 tasks/schema.rake
outoftime-sunspot-0.9.6 tasks/schema.rake
outoftime-sunspot-0.9.7 tasks/schema.rake
outoftime-sunspot-0.9.8 tasks/schema.rake
sunspot-0.9.8 tasks/schema.rake
sunspot-0.9.7 tasks/schema.rake