Class: Packwerk::Commands::BaseCommand
- Inherits:
-
Object
- Object
- Packwerk::Commands::BaseCommand
show all
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/packwerk/commands/base_command.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(args, configuration:, out:, err_out:, progress_formatter:, offenses_formatter:) ⇒ BaseCommand
36
37
38
39
40
41
42
43
|
# File 'lib/packwerk/commands/base_command.rb', line 36
def initialize(args, configuration:, out:, err_out:, progress_formatter:, offenses_formatter:)
@args = args
@configuration = configuration
@out = out
@err_out = err_out
@progress_formatter = progress_formatter
@offenses_formatter = offenses_formatter
end
|
Class Method Details
.description(description = nil) ⇒ Object
17
18
19
20
21
22
23
|
# File 'lib/packwerk/commands/base_command.rb', line 17
def description(description = nil)
if description
@description = description
else
@description
end
end
|
Instance Method Details
#run ⇒ Object
46
|
# File 'lib/packwerk/commands/base_command.rb', line 46
def run; end
|