Class: Sunspot::Solr::Installer

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

Defined Under Namespace

Modules: TaskHelper Classes: ConfigInstaller

Class Method Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Installer) initialize(solr_home, options)

A new instance of Installer



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

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

Class Method Details

+ (Object) execute(solr_home, options = {})



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

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

Instance Method Details

- (Object) execute



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

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