Sha256: e686bddaceaaeafd5ff810450a4904e55c00653ccc096dba9558a51a1fb82769

Contents?: true

Size: 506 Bytes

Versions: 20

Compression:

Stored size: 506 Bytes

Contents

# frozen_string_literal: true

require "git/lint"
require "rake"

module Git
  module Lint
    module Rake
      # Registers Rake tasks for use.
      class Register
        include ::Rake::DSL

        def self.call = new.call

        def initialize shell: CLI::Shell.new
          @shell = shell
        end

        def call
          desc "Run Git Lint"
          task(:git_lint) { shell.call %w[analyze --branch] }
        end

        private

        attr_reader :shell
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
git-lint-8.8.0 lib/git/lint/rake/register.rb
git-lint-8.7.0 lib/git/lint/rake/register.rb
git-lint-8.6.0 lib/git/lint/rake/register.rb
git-lint-8.5.0 lib/git/lint/rake/register.rb
git-lint-8.4.0 lib/git/lint/rake/register.rb
git-lint-8.3.0 lib/git/lint/rake/register.rb
git-lint-8.2.0 lib/git/lint/rake/register.rb
git-lint-8.1.0 lib/git/lint/rake/register.rb
git-lint-8.0.0 lib/git/lint/rake/register.rb
git-lint-7.5.0 lib/git/lint/rake/register.rb
git-lint-7.3.0 lib/git/lint/rake/register.rb
git-lint-7.2.0 lib/git/lint/rake/register.rb
git-lint-7.1.0 lib/git/lint/rake/register.rb
git-lint-7.0.0 lib/git/lint/rake/register.rb
git-lint-6.2.1 lib/git/lint/rake/register.rb
git-lint-6.2.0 lib/git/lint/rake/register.rb
git-lint-6.1.0 lib/git/lint/rake/register.rb
git-lint-6.0.2 lib/git/lint/rake/register.rb
git-lint-6.0.1 lib/git/lint/rake/register.rb
git-lint-6.0.0 lib/git/lint/rake/register.rb