Class: Blacklight::Allmaps::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Blacklight::Allmaps::InstallGenerator
- Defined in:
- lib/generators/blacklight/allmaps/install_generator.rb
Instance Method Summary collapse
- #bundle_install ⇒ Object
- #generate_blacklight_config ⇒ Object
- #generate_config ⇒ Object
- #generate_geoblacklight_config ⇒ Object
- #generate_models ⇒ Object
Instance Method Details
#bundle_install ⇒ Object
30 31 32 33 34 |
# File 'lib/generators/blacklight/allmaps/install_generator.rb', line 30 def bundle_install Bundler.with_unbundled_env do run "bundle install" end end |
#generate_blacklight_config ⇒ Object
16 17 18 19 |
# File 'lib/generators/blacklight/allmaps/install_generator.rb', line 16 def generate_blacklight_config return unless ENV["LIGHT"] == "blacklight" generate "blacklight:allmaps:blacklight" end |
#generate_config ⇒ Object
12 13 14 |
# File 'lib/generators/blacklight/allmaps/install_generator.rb', line 12 def generate_config generate "blacklight:allmaps:config" end |
#generate_geoblacklight_config ⇒ Object
21 22 23 24 |
# File 'lib/generators/blacklight/allmaps/install_generator.rb', line 21 def generate_geoblacklight_config return unless ENV["LIGHT"] == "geoblacklight" generate "blacklight:allmaps:geoblacklight" end |
#generate_models ⇒ Object
26 27 28 |
# File 'lib/generators/blacklight/allmaps/install_generator.rb', line 26 def generate_models generate "blacklight:allmaps:models" end |