Sha256: b0730a7b882e869b5a735f735aacedc970ce62df6447249d7541df53eff029ef

Contents?: true

Size: 675 Bytes

Versions: 3

Compression:

Stored size: 675 Bytes

Contents

namespace :sunspot do
  namespace :solr do
    desc 'Start the Solr instance'
    task :start => :environment do
      if RUBY_PLATFORM =~ /w(in)?32$/
        abort('This command does not work on Windows. Please use rake sunspot:solr:run to run Solr in the foreground.')
      end
      Sunspot::Rails::Server.start
    end

    desc 'Run the Solr instance in the foreground'
    task :run => :environment do
      Sunspot::Rails::Server.run
    end

    desc 'Stop the Solr instance'
    task :stop => :environment do
      if RUBY_PLATFORM =~ /w(in)?32$/
        abort('This command does not work on Windows.')
      end
      Sunspot::Rails::Server.stop
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
benjaminkrause-sunspot_rails-0.10.5 lib/sunspot/rails/tasks.rb
kuahyeow-sunspot_rails-0.10.7 lib/sunspot/rails/tasks.rb
kuahyeow-sunspot_rails-0.10.6 lib/sunspot/rails/tasks.rb