Sha256: 351f9de372deb7a3c81be0bb274a517c82dc1272d4ad28523a8a987caeed995e

Contents?: true

Size: 569 Bytes

Versions: 15

Compression:

Stored size: 569 Bytes

Contents

# frozen_string_literal: true

module Stenotype
  #
  # A module enclosing Rails generators for gem setup
  #
  module Generators
    #
    # A class for generating a Rails initializer to setup the gem
    # upon rails application load.
    #
    class InitializerGenerator < Rails::Generators::Base
      source_root File.expand_path("templates", __dir__)

      #
      # Creates an initializer for rails application
      #
      def create_initializer
        template "initializer.rb.erb", File.join("config/initializers/stenotype.rb")
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
stenotype-0.1.19 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.17 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.16 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.15 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.13 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.12 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.10 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.9 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.8 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.7 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.6 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.5 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.4 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.2 lib/generators/stenotype/initializer/initializer_generator.rb
stenotype-0.1.1 lib/generators/stenotype/initializer/initializer_generator.rb