Sha256: 9bce3073ed195f047f02a85d4612bd9cd32fb7e31addc8ee90c6230c321932eb
Contents?: true
Size: 623 Bytes
Versions: 2
Compression:
Stored size: 623 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Rubysmith module Builders # Builds project skeleton with Caliber style support. class Caliber < Abstract using Refinements::Struct def call return configuration unless configuration.build_caliber builder.call(configuration.merge(template_path: "%project_name%/bin/rubocop.erb")) .render .permit 0o755 path = "%project_name%/.config/rubocop/config.yml.erb" builder.call(configuration.merge(template_path: path)).render configuration end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysmith-6.10.0 | lib/rubysmith/builders/caliber.rb |
rubysmith-6.9.0 | lib/rubysmith/builders/caliber.rb |