Sha256: b6777dfceb827e6c22c7c54b016cb819c0926cec3ba21c13fa65a1a8ee311153

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 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", orce: 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.0 lib/generators/tal_style/install_generator.rb