Class: Rubbr::Runner::BibTeX

Inherits:
Base
  • Object
show all
Defined in:
lib/rubbr/runner/bibtex.rb

Instance Attribute Summary

Attributes inherited from Base

#errors, #executable, #input_file, #verboser_warnings, #warnings

Instance Method Summary collapse

Methods inherited from Base

#feedback

Methods included from Cli

#color?, #disable_stderr, #disable_stdinn, #disable_stdout, #error, #executable?, #notice, #valid_executable, #warning

Constructor Details

#initialize(input_file, executable = 'bibtex') ⇒ BibTeX

Returns a new instance of BibTeX.



4
5
6
# File 'lib/rubbr/runner/bibtex.rb', line 4

def initialize(input_file, executable='bibtex')
  super
end

Instance Method Details

#runObject



8
9
10
11
12
# File 'lib/rubbr/runner/bibtex.rb', line 8

def run
  messages = /^I (found no|couldn't open)/
  @warnings = `#@executable #@input_file`.grep(messages)
  feedback
end