Sha256: b164d08e4b5c9b0d5f3b1bbdcfafb0d0afaab6e3be963e0955ad4ac46dcf8b1c
Contents?: true
Size: 776 Bytes
Versions: 6
Compression:
Stored size: 776 Bytes
Contents
# frozen_string_literal: true module Rubysmith module Builders module Rubocop # Builds project skeleton for Rubocop code quality support. class Setup def self.call realm, builder: Builder new(realm, builder: builder).call end def initialize realm, builder: Builder @realm = realm @builder = builder end def call return unless realm.build_rubocop builder.call(realm.with(template_path: "%project_name%/bin/rubocop.erb")) .render .permit 0o755 builder.call(realm.with(template_path: "%project_name%/.rubocop.yml.erb")).render end private attr_reader :realm, :builder end end end end
Version data entries
6 entries across 6 versions & 1 rubygems