Class: Avm::Tools::Runner::Source::AutoCommit

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/tools/runner/source/auto_commit.rb

Instance Method Summary collapse

Instance Method Details

#help_extra_textObject



29
30
31
32
# File 'lib/avm/tools/runner/source/auto_commit.rb', line 29

def help_extra_text
  "Rules\n" + ::Avm::Scms::AutoCommit::Rules.all # rubocop:disable Style/StringConcatenation
                .map { |r| "  #{r.keys.join(', ')}\n" }.join
end

#runObject



21
22
23
24
25
26
27
# File 'lib/avm/tools/runner/source/auto_commit.rb', line 21

def run
  format_files
  files.each do |file|
    ::Avm::Sources::AutoCommit::ForFile.new(runner_context.call(:source), file, rules)
      .run
  end
end