Sha256: ef57e16ba0c1839a2daf5fd25595832c591a44d26338c7aa16568eb9ac97e5c3
Contents?: true
Size: 670 Bytes
Versions: 2
Compression:
Stored size: 670 Bytes
Contents
# frozen_string_literal: true require "refinements/struct" module Gemsmith module Builders module Git # Builds project skeleton Git ignore. class Ignore < Rubysmith::Builders::Abstract using Refinements::Struct def call return configuration unless configuration.build_git builder.call(configuration.merge(template_path: "%project_name%/.gitignore.erb")) .touch .prepend("*.gem\n") .insert_before "tmp\n", <<~CONTENT Gemfile.lock pkg CONTENT configuration end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemsmith-21.10.0 | lib/gemsmith/builders/git/ignore.rb |
gemsmith-21.9.0 | lib/gemsmith/builders/git/ignore.rb |