Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

allow port to be passed in from command line

  • Loading branch information...
commit 8e928e81d829db83d0de88c1ae71b08c318ad1c6 1 parent d42465b
mguymon authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  Rakefile
  2. +2 −1  src/main/ruby/solr_sail/cli.rb
View
2  Rakefile
@@ -96,7 +96,7 @@ Jeweler::Tasks.new do |gem|
gem.executable = "solrsail"
gem.extensions = ["Rakefile"]
- # all files in target/gem should be included, expect for pkg
+ # all files in target/gem should be included, except for pkg
gem.files = Dir.glob("**/*").select{ |path| !(path =~ /^pkg/) }
end
Jeweler::RubygemsDotOrgTasks.new
View
3  src/main/ruby/solr_sail/cli.rb
@@ -19,8 +19,9 @@ def install_jars
desc "start", "Run Solr"
method_option :solr_home, :aliases => "-h", :default => 'solr', :desc => "Path to install solr config"
+ method_option :port, :aliases => "-p", :desc => "Port to run Solr on, overrides Solr Home config"
def start
- SolrSail.start( :solr_home => options[:solr_home] )
+ SolrSail.start( :solr_home => options[:solr_home], :port => options[:port] )
end
desc "version", "Version"
Please sign in to comment.
Something went wrong with that request. Please try again.