Class: Solrsan::Generators::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Solrsan::Generators::ConfigGenerator
- Defined in:
- lib/rails/generators/solrsan/config/config_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_rake_task ⇒ Object
17 18 19 |
# File 'lib/rails/generators/solrsan/config/config_generator.rb', line 17 def copy_rake_task copy_file "../../../../../tasks/solr.rake", "lib/tasks/solr.rake" end |
#copy_solr_conf ⇒ Object
13 14 15 |
# File 'lib/rails/generators/solrsan/config/config_generator.rb', line 13 def copy_solr_conf directory "../../../../../../config/solr", "config/solr", :recursive => true end |
#create_config_files ⇒ Object
8 9 10 11 |
# File 'lib/rails/generators/solrsan/config/config_generator.rb', line 8 def create_config_files template("solrsan.rb", File.join("config", "initializers", "solrsan.rb")) template("solr.yml", File.join("config", "solr.yml")) end |