Class: Packwerk::Commands::BaseCommand
- Inherits:
-
Object
- Object
- Packwerk::Commands::BaseCommand
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/packwerk/commands/base_command.rb
Direct Known Subclasses
CheckCommand, HelpCommand, InitCommand, UpdateTodoCommand, ValidateCommand, VersionCommand
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args, configuration:, out:, err_out:, progress_formatter:, offenses_formatter:) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
- #run ⇒ Object
Constructor Details
#initialize(args, configuration:, out:, err_out:, progress_formatter:, offenses_formatter:) ⇒ BaseCommand
Returns a new instance of 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 |