Sha256: 186c9dc04a12acc7ce54f08bde0d3dd16594dc16874d242d8179f19ca87a5912

Contents?: true

Size: 318 Bytes

Versions: 5

Compression:

Stored size: 318 Bytes

Contents

require_relative "base"

module Suspenders
  class InlineSvgGenerator < Generators::Base
    def add_inline_svg
      gem "inline_svg"
      Bundler.with_unbundled_env { run "bundle install" }
    end

    def configure_inline_svg
      copy_file "inline_svg.rb", "config/initializers/inline_svg.rb"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
suspenders-20230113.0 lib/suspenders/generators/inline_svg_generator.rb
suspenders-1.56.1 lib/suspenders/generators/inline_svg_generator.rb
suspenders-1.55.1 lib/suspenders/generators/inline_svg_generator.rb
suspenders-1.55.0 lib/suspenders/generators/inline_svg_generator.rb
suspenders-1.54.1 lib/suspenders/generators/inline_svg_generator.rb