Class: Europeana::Blacklight::Install
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Europeana::Blacklight::Install
- Defined in:
- lib/generators/europeana/blacklight/install_generator.rb
Instance Method Summary collapse
- #bundle_install ⇒ Object
- #create_configuration_files ⇒ Object
- #disable_solr_gems ⇒ Object
- #generate_controller ⇒ Object
Instance Method Details
#bundle_install ⇒ Object
14 15 16 17 18 |
# File 'lib/generators/europeana/blacklight/install_generator.rb', line 14 def bundle_install Bundler.with_clean_env do run 'bundle install' end end |
#create_configuration_files ⇒ Object
20 21 22 |
# File 'lib/generators/europeana/blacklight/install_generator.rb', line 20 def create_configuration_files template 'config/blacklight.yml', 'config/blacklight.yml' end |
#disable_solr_gems ⇒ Object
9 10 11 12 |
# File 'lib/generators/europeana/blacklight/install_generator.rb', line 9 def disable_solr_gems comment_lines('Gemfile', /gem 'solr_wrapper'/) comment_lines('Gemfile', /gem 'rsolr'/) end |
#generate_controller ⇒ Object
24 25 26 |
# File 'lib/generators/europeana/blacklight/install_generator.rb', line 24 def generate_controller template 'catalog_controller.rb', "app/controllers/#{controller_name}_controller.rb" end |