lib/generators/blacklight/install_generator.rb in blacklight-7.19.2 vs lib/generators/blacklight/install_generator.rb in blacklight-7.20.0

- old
+ new

@@ -8,10 +8,11 @@ argument :document_name, type: :string, default: "solr_document" argument :search_builder_name, type: :string, default: "search_builder" class_option :devise, type: :boolean, default: false, aliases: "-d", desc: "Use Devise as authentication logic." class_option :marc, type: :boolean, default: false, aliases: "-m", desc: "Generate MARC-based demo." + class_option :'bootstrap-version', type: :string, default: nil, desc: "Set the generated app's bootstrap version" class_option :'skip-assets', type: :boolean, default: !defined?(Sprockets), desc: "Skip generating javascript and css assets into the application" class_option :'skip-solr', type: :boolean, default: false, desc: "Skip generating solr configurations." desc <<-EOS This generator makes the following changes to your application: @@ -31,10 +32,12 @@ # Copy all files in templates/public/ directory to public/ # Call external generator in AssetsGenerator, so we can # leave that callable seperately too. def copy_public_assets - generate "blacklight:assets" unless options[:'skip-assets'] + generated_options = "--bootstrap-version #{options[:'bootstrap-version']}" if options[:'bootstrap-version'] + + generate "blacklight:assets", generated_options unless options[:'skip-assets'] end def bundle_install inside destination_root do Bundler.with_clean_env do