Sha256: 23ff07bf2e6171a044751406a08d349bc6738028e30ef6a814e658b4809b7a10

Contents?: true

Size: 436 Bytes

Versions: 1

Compression:

Stored size: 436 Bytes

Contents

require 'rails/generators'
require 'rails/generators/base'

module TalStyle
  class InstallGenerator < Rails::Generators::Base
    def self.source_root
      @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
    end

    def create_root_reek_yml
      template "reek", ".reek", force: true
    end

    def create_root_rubocop
      template "rubocop.yml", ".rubocop.yml", force: true
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tal_style-1.0.1 lib/generators/tal_style/install_generator.rb