Class: Git::Lint::Rake::Register
- Inherits:
-
Object
- Object
- Git::Lint::Rake::Register
- Includes:
- Rake::DSL
- Defined in:
- lib/git/lint/rake/register.rb
Overview
Registers Rake tasks for use.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(shell: CLI::Shell.new) ⇒ Register
constructor
A new instance of Register.
Constructor Details
Class Method Details
.call ⇒ Object
13 |
# File 'lib/git/lint/rake/register.rb', line 13 def self.call = new.call |
Instance Method Details
#call ⇒ Object
19 20 21 22 |
# File 'lib/git/lint/rake/register.rb', line 19 def call desc "Run Git Lint" task(:git_lint) { shell.call %w[analyze --branch] } end |