Module: ErbLatex::GuardRunner
- Defined in:
- lib/erb_latex/guard_runner.rb
Class Attribute Summary collapse
-
.last_run_failed ⇒ Object
Returns the value of attribute last_run_failed.
Class Method Summary collapse
-
.run(files, watchers, options = { }) ⇒ Array<Array<String>, Boolean>
The ErbLatex runner handles the ErbLatex compilation, creates the output pdf file, writes the result to the console and triggers optional system notifications.
Class Attribute Details
.last_run_failed ⇒ Object
Returns the value of attribute last_run_failed.
7 8 9 |
# File 'lib/erb_latex/guard_runner.rb', line 7 def last_run_failed @last_run_failed end |
Class Method Details
.run(files, watchers, options = { }) ⇒ Array<Array<String>, Boolean>
The ErbLatex runner handles the ErbLatex compilation, creates the output pdf file, writes the result to the console and triggers optional system notifications.
20 21 22 23 24 25 |
# File 'lib/erb_latex/guard_runner.rb', line 20 def run(files, watchers, = { }) ::Guard::UI.info('Compiling ' + files.join(', '), :reset=>true ) changed_files, errors = compile_files(files, watchers, ) notify_result(changed_files, errors, ) return errors.empty? end |