Class: Blacklight::Allmaps::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/blacklight/allmaps/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#bundle_installObject



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_configObject



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_configObject



12
13
14
# File 'lib/generators/blacklight/allmaps/install_generator.rb', line 12

def generate_config
  generate "blacklight:allmaps:config"
end

#generate_geoblacklight_configObject



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_modelsObject



26
27
28
# File 'lib/generators/blacklight/allmaps/install_generator.rb', line 26

def generate_models
  generate "blacklight:allmaps:models"
end