Class: Git::Lint::Rake::Tasks

Inherits:
Object
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/git/lint/rake/tasks.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cli: CLI) ⇒ Tasks

Returns a new instance of Tasks.



16
17
18
# File 'lib/git/lint/rake/tasks.rb', line 16

def initialize cli: CLI
  @cli = cli
end

Class Method Details

.setupObject



12
13
14
# File 'lib/git/lint/rake/tasks.rb', line 12

def self.setup
  new.install
end

Instance Method Details

#installObject



20
21
22
23
24
25
# File 'lib/git/lint/rake/tasks.rb', line 20

def install
  desc "Run Git Lint"
  task :git_lint do
    cli.start ["--analyze"]
  end
end