Class: Solrsan::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/solrsan/config/config_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_rake_taskObject



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_confObject



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_filesObject



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