Sha256: aa3b3ebfc7fdc91a9bb98c4a81b73f71dee063f8d67b7e850e1ccfc65d0b03b4

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

module Gemsmith
  module Generators
    # Generates Git Cop support.
    class GitCop < Base
      def run
        return unless configuration.dig :generate, :git_cop

        cli.uncomment_lines "#{gem_name}/Rakefile", %r(require.+git/cop.+)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemsmith-14.1.3 lib/gemsmith/generators/git_cop.rb