Sha256: 7ad71792126874112cbed5fec629ff74955b60e807376a76dfeef1e5bbd528e8

Contents?: true

Size: 888 Bytes

Versions: 4

Compression:

Stored size: 888 Bytes

Contents

# frozen_string_literal: true

module Lcms
  module Engine
    module Generators
      class InstallGenerator < Rails::Generators::Base
        desc 'Copies all required configuration files.'

        source_root File.expand_path('templates', __dir__)

        def copy_config_files
          directory File.expand_path('templates/config', __dir__), Rails.root.join('config')
        end

        def update_gemfile
          # Rails-assets.org is needed to fetch required gems (rails-assets-*)
          add_source 'https://rails-assets.org'

          # Required by lcms-engine because of unpublished gems are not automatically installed with the parent gem
          gem 'wicked_pdf', git: 'https://github.com/learningtapestry/wicked_pdf.git',
                            branch: 'puppeteer-support',
                            ref: 'c807f6b4'
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lcms-engine-0.1.4 lib/generators/lcms/engine/install/install_generator.rb
lcms-engine-0.1.3 lib/generators/lcms/engine/install/install_generator.rb
lcms-engine-0.1.2 lib/generators/lcms/engine/install/install_generator.rb
lcms-engine-0.1.0 lib/generators/lcms/engine/install/install_generator.rb