Class: Lcms::Engine::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/lcms/engine/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_config_filesObject



11
12
13
# File 'lib/generators/lcms/engine/install/install_generator.rb', line 11

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

#update_gemfileObject



15
16
17
18
19
20
21
22
23
# File 'lib/generators/lcms/engine/install/install_generator.rb', line 15

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