Sha256: eba838a9ca878f49c95ac9c00446671bca37c0a42759225eff81a9d57c245f7b
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
# frozen_string_literal: true require "rails/generators" module GeoblacklightAdmin class Install < Rails::Generators::Base source_root File.expand_path("templates", __dir__) desc "Install GeoblacklightAdmin" def bundle_install Bundler.with_unbundled_env do run "bundle install" end end def generate_gbl_admin_assets inject_into_file "app/assets/stylesheets/application.scss", after: "@import 'geoblacklight';\n" do "@import 'geoblacklight_admin/core';" end end def generate_gbl_admin_example_docs generate "geoblacklight_admin:example_docs" end def generate_gbl_admin_jobs generate "geoblacklight_admin:jobs" end def generate_gbl_admin_models generate "geoblacklight_admin:models" end def generate_gbl_admin_views generate "geoblacklight_admin:views" end def generate_gbl_admin_helpers generate "geoblacklight_admin:helpers" end def generate_gbl_admin_config generate "geoblacklight_admin:config" end def kithe_install run "bundle exec rails generate simple_form:install --bootstrap" end def install_active_storage run "bin/rails active_storage:install" end def yarn_install run "yarn install" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geoblacklight_admin-0.1.0 | lib/generators/geoblacklight_admin/install_generator.rb |