Class: Sunspot::Solr::Installer
- Inherits:
-
Object
- Object
- Sunspot::Solr::Installer
- 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
- #execute ⇒ Object
-
#initialize(solr_home, options) ⇒ Installer
constructor
A new instance of Installer.
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, ) @solr_home, @options = solr_home, end |
Class Method Details
.execute(solr_home, options = {}) ⇒ Object
9 10 11 |
# File 'lib/sunspot/solr/installer.rb', line 9 def execute(solr_home, = {}) new(solr_home, ).execute end |
Instance Method Details
#execute ⇒ Object
20 21 22 |
# File 'lib/sunspot/solr/installer.rb', line 20 def execute ConfigInstaller.execute(File.join(@solr_home, 'conf'), @options) end |