lib/git/lint/rake/tasks.rb in git-lint-2.4.0 vs lib/git/lint/rake/tasks.rb in git-lint-3.0.0
- old
+ new
@@ -4,28 +4,29 @@
require "git/lint"
module Git
module Lint
module Rake
+ # Defines and installs Rake tasks for use in downstream projects.
class Tasks
include ::Rake::DSL
def self.setup = new.install
- def initialize cli: CLI
- @cli = cli
+ def initialize shell: CLI::Shell.new
+ @shell = shell
end
def install
desc "Run Git Lint"
task :git_lint do
- cli.start ["--analyze"]
+ shell.call ["--analyze"]
end
end
private
- attr_reader :cli
+ attr_reader :shell
end
end
end
end