Sha256: 4e20ecc2bd181ec6d775518ee4e2c5e03f9ec1946249df89feb15e4ff5df525d
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
# frozen_string_literal: true module RailsAppGenerator # Custom add-ons for RailsAppGenerator module AddOns # Add MiniMagick to rails application class MiniMagick < AddOn required_gem gem.version('mini_magick', '4.11.0', 'Manipulate images with minimal use of memory via ImageMagick / GraphicsMagick') def apply say 'Setting up MiniMagick' # template('mini_magick_template.rb', 'target/mini_magick.rb', force: true) # template('app/javascript/stylesheets/components.scss') # create_file('target/mini_magick.rb', 'put your content here') # directory 'app/template', 'app/target', force: true # empty_directory 'app/target' # inject_into_file('app/application.js', "some content") # rails_command('tailwindcss:install') end def before_bundle say 'Setting up MiniMagick - before bundle install' end def after_bundle say 'Setting up MiniMagick - after bundle install' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_app_generator-0.1.25 | lib/rails_app_generator/addons/mini_magick.rb |