Class: Sunspot::Solr::Installer

Inherits:
Object
  • Object
show all
Defined in:
lib/sunspot/solr/installer.rb,
lib/sunspot/solr/installer/task_helper.rb,
lib/sunspot/solr/installer/config_installer.rb

Defined Under Namespace

Modules: TaskHelper Classes: ConfigInstaller

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(solr_home, options) ⇒ Installer

Returns a new instance of Installer.



16
17
18
# File 'lib/sunspot/solr/installer.rb', line 16

def initialize(solr_home, options)
  @solr_home, @options = solr_home, options
end

Class Method Details

.execute(solr_home, options = {}) ⇒ Object



9
10
11
# File 'lib/sunspot/solr/installer.rb', line 9

def execute(solr_home, options = {})
  new(solr_home, options).execute
end

Instance Method Details

#executeObject



20
21
22
# File 'lib/sunspot/solr/installer.rb', line 20

def execute
  ConfigInstaller.execute(File.join(@solr_home, 'conf'), @options)
end