Sha256: 2abba74d0800708fda2f76c918c6f4a76296742333ffbed366baf142d447c65d
Contents?: true
Size: 809 Bytes
Versions: 4
Compression:
Stored size: 809 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Rubysmith module Builders # Builds project skeleton with Caliber style support. class Caliber using Refinements::Struct def self.call(...) = new(...).call def initialize configuration, builder: Builder @configuration = configuration @builder = builder end def call return configuration unless configuration.build_caliber builder.call(configuration.merge(template_path: "%project_name%/bin/rubocop.erb")) .render .permit 0o755 builder.call(configuration.merge(template_path: "%project_name%/.rubocop.yml.erb")).render configuration end private attr_reader :configuration, :builder end end end
Version data entries
4 entries across 4 versions & 1 rubygems