Class: Hyrax::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Hyrax::ConfigGenerator
- Defined in:
- lib/generators/hyrax/config_generator.rb
Instance Method Summary collapse
- #configure_endnote ⇒ Object
- #configure_redis ⇒ Object
- #configure_valkyrie ⇒ Object
- #configure_valkyrie_index ⇒ Object
- #create_initializer_config_file ⇒ Object
- #derivatives_file_services ⇒ Object
- #inject_i18n ⇒ Object
- #local_authorities ⇒ Object
- #metadata_dir ⇒ Object
-
#minimagick_config ⇒ Object
Add mini-magick configuration.
- #simple_form_initializers ⇒ Object
- #tinymce_config ⇒ Object
Instance Method Details
#configure_endnote ⇒ Object
31 32 33 34 |
# File 'lib/generators/hyrax/config_generator.rb', line 31 def configure_endnote append_file 'config/initializers/mime_types.rb', "\nMime::Type.register 'application/x-endnote-refer', :endnote", verbose: false end |
#configure_redis ⇒ Object
36 37 38 39 |
# File 'lib/generators/hyrax/config_generator.rb', line 36 def configure_redis copy_file 'config/redis.yml' copy_file 'config/initializers/redis_config.rb' end |
#configure_valkyrie ⇒ Object
41 42 43 |
# File 'lib/generators/hyrax/config_generator.rb', line 41 def configure_valkyrie copy_file 'config/initializers/1_valkyrie.rb' end |
#configure_valkyrie_index ⇒ Object
45 46 47 48 |
# File 'lib/generators/hyrax/config_generator.rb', line 45 def configure_valkyrie_index copy_file 'config/valkyrie_index.yml' copy_file 'config/solr_wrapper_valkyrie_test.yml' end |
#create_initializer_config_file ⇒ Object
58 59 60 |
# File 'lib/generators/hyrax/config_generator.rb', line 58 def create_initializer_config_file copy_file 'config/initializers/hyrax.rb' end |
#derivatives_file_services ⇒ Object
54 55 56 |
# File 'lib/generators/hyrax/config_generator.rb', line 54 def derivatives_file_services copy_file 'config/initializers/file_services.rb' end |
#inject_i18n ⇒ Object
71 72 73 74 75 76 77 78 79 |
# File 'lib/generators/hyrax/config_generator.rb', line 71 def inject_i18n copy_file 'config/locales/hyrax.en.yml' copy_file 'config/locales/hyrax.es.yml' copy_file 'config/locales/hyrax.zh.yml' copy_file 'config/locales/hyrax.de.yml' copy_file 'config/locales/hyrax.fr.yml' copy_file 'config/locales/hyrax.it.yml' copy_file 'config/locales/hyrax.pt-BR.yml' end |
#local_authorities ⇒ Object
20 21 22 23 24 |
# File 'lib/generators/hyrax/config_generator.rb', line 20 def copy_file "config/authorities/licenses.yml" copy_file "config/authorities/rights_statements.yml" copy_file "config/authorities/resource_types.yml" end |
#metadata_dir ⇒ Object
50 51 52 |
# File 'lib/generators/hyrax/config_generator.rb', line 50 def empty_directory 'config/metadata' end |
#minimagick_config ⇒ Object
Add mini-magick configuration
63 64 65 |
# File 'lib/generators/hyrax/config_generator.rb', line 63 def minimagick_config copy_file 'config/initializers/mini_magick.rb' end |
#simple_form_initializers ⇒ Object
26 27 28 29 |
# File 'lib/generators/hyrax/config_generator.rb', line 26 def simple_form_initializers copy_file 'config/initializers/simple_form.rb' copy_file 'config/initializers/simple_form_bootstrap.rb' end |
#tinymce_config ⇒ Object
67 68 69 |
# File 'lib/generators/hyrax/config_generator.rb', line 67 def tinymce_config copy_file 'config/tinymce.yml' end |