Sha256: 679784254637045af1f8a820fa3ddc37c026cd04b4cae4215bf414c724be84df

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

# typed: false
# frozen_string_literal: true

module Vigiles
  module Generators
    class InitializerGenerator < ::Rails::Generators::Base
      desc <<~DOC.squish
        This generator creates the vigiles initializer file at the
        `config/initializers/vigiles.rb` path and sets up a sane
        default configuration.
      DOC

      source_root File.expand_path("templates", __dir__)

      def copy_initializer_file
        copy_file \
          "initializer.rb",
          "config/initializers/vigiles.rb"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vigiles-0.1.5 lib/generators/vigiles/initializer_generator.rb