You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by eh...@apache.org on 2007/02/22 03:21:07 UTC

svn commit: r510347 - /lucene/solr/trunk/client/ruby/solr-ruby/lib/solr/solrtasks.rb

Author: ehatcher
Date: Wed Feb 21 18:21:07 2007
New Revision: 510347

URL: http://svn.apache.org/viewvc?view=rev&rev=510347
Log:
Add placeholder for future Solr Rake tasks

Added:
    lucene/solr/trunk/client/ruby/solr-ruby/lib/solr/solrtasks.rb   (with props)

Added: lucene/solr/trunk/client/ruby/solr-ruby/lib/solr/solrtasks.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/solr-ruby/lib/solr/solrtasks.rb?view=auto&rev=510347
==============================================================================
--- lucene/solr/trunk/client/ruby/solr-ruby/lib/solr/solrtasks.rb (added)
+++ lucene/solr/trunk/client/ruby/solr-ruby/lib/solr/solrtasks.rb Wed Feb 21 18:21:07 2007
@@ -0,0 +1,27 @@
+#!/usr/bin/env ruby
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# TODO: fill out Solr tasks: start, stop, ping, optimize, etc.
+
+require 'rake'
+require 'rake/tasklib'
+
+module Solr
+  namespace :solr do
+    desc "Start Solr"
+    task :start do
+      # TODO: actually start it up!
+      puts "Starting..."
+    end
+  end
+end

Propchange: lucene/solr/trunk/client/ruby/solr-ruby/lib/solr/solrtasks.rb
------------------------------------------------------------------------------
    svn:executable = *