Sha256: 66b780871805cf9ba1885463f54a7cb6864a90d2900f8cbf7e0e20d1675f48f9

Contents?: true

Size: 518 Bytes

Versions: 10

Compression:

Stored size: 518 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 < Abstract
        using Refinements::Struct

        def call
          return false unless settings.build_git

          builder.call(settings.merge(template_path: "%project_name%/.gitignore.erb"))
                 .render
                 .replace("  ", "")

          true
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/builders/git/ignore.rb
rubysmith-7.8.0 lib/rubysmith/builders/git/ignore.rb
rubysmith-7.7.0 lib/rubysmith/builders/git/ignore.rb
rubysmith-7.6.0 lib/rubysmith/builders/git/ignore.rb
rubysmith-7.5.0 lib/rubysmith/builders/git/ignore.rb
rubysmith-7.4.0 lib/rubysmith/builders/git/ignore.rb
rubysmith-7.3.0 lib/rubysmith/builders/git/ignore.rb
rubysmith-7.2.0 lib/rubysmith/builders/git/ignore.rb
rubysmith-7.1.0 lib/rubysmith/builders/git/ignore.rb
rubysmith-7.0.0 lib/rubysmith/builders/git/ignore.rb