Sha256: 8dd26ce6e7ddf5c4fdfd3c1f58bf6dc169e5da57bb325f3054142cc58c533c78
Contents?: true
Size: 773 Bytes
Versions: 6
Compression:
Stored size: 773 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(...) = new(...).call def initialize configuration, builder: Builder @configuration = configuration @builder = builder end def call return unless configuration.build_rubocop builder.call(configuration.with(template_path: "%project_name%/bin/rubocop.erb")) .render .permit 0o755 builder.call(configuration.with(template_path: "%project_name%/.rubocop.yml.erb")).render end private attr_reader :configuration, :builder end end end end
Version data entries
6 entries across 6 versions & 1 rubygems