Sha256: 718230da3bd112bf7f084a1db6e4ca08c3407b77ebeacc43f3745714b7a13f29
Contents?: true
Size: 779 Bytes
Versions: 8
Compression:
Stored size: 779 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Rubysmith module Builders module Git # Builds Git repository directory and file ignore configuration. class Ignore 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_git builder.call(configuration.merge(template_path: "%project_name%/.gitignore.erb")) .render .replace(" ", "") configuration end private attr_reader :configuration, :builder end end end end
Version data entries
8 entries across 8 versions & 1 rubygems