class Gemsmith::Builders::Git::Ignore

Builds project skeleton Git ignore.

Public Instance Methods

call() click to toggle source
Calls superclass method
# File lib/gemsmith/builders/git/ignore.rb, line 12
        def call
          super

          return false unless settings.build_git

          builder.call(settings.merge(template_path: "%project_name%/.gitignore.erb"))
                 .touch
                 .prepend("*.gem\n")
                 .insert_before "tmp\n", <<~CONTENT
                   Gemfile.lock
                   pkg
                 CONTENT

          true
        end