Sha256: c3158d9f2bc444aaa71616bdf08c8813b7a2c33e1fbd4bf5c90c64edc2e7b75b

Contents?: true

Size: 733 Bytes

Versions: 2

Compression:

Stored size: 733 Bytes

Contents

#!/usr/bin/env ruby


# If we're loading from source instead of a gem, we need to
# set the load path directly
self_load_path = File.expand_path("../lib", File.dirname(__FILE__))
unless $LOAD_PATH.include? self_load_path
  $LOAD_PATH << self_load_path
end

require 'simple_solr_client'

require 'pry'

solr_url = ARGV[0]

client = SimpleSolrClient::Client.new(solr_url)




pry = Pry.new
cb = pry.current_binding
puts "
     Connected to #{client.url}

"

cb.local_variable_set(:solr, client)
puts "       * Created variable 'solr' for the main solr client"

client.cores.each do |core|
  cb.local_variable_set :"#{core}", client.core(core)
  puts "       * Created variable '#{core}' pointing to its core"
end

puts "\n\n"


cb.pry

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_solr_client-0.2.1 bin/solr_shell
simple_solr_client-0.2.0 bin/solr_shell