Module: PgVerify::Puml
- Defined in:
- lib/pg-verify/puml/puml.rb
Class Method Summary collapse
Class Method Details
.convert_file(in_path, out_path) ⇒ Object
17 18 19 20 21 |
# File 'lib/pg-verify/puml/puml.rb', line 17 def self.convert_file(in_path, out_path) # CALL WITH java -Djava.awt.headless=true -jar addon/plantuml-1.2023.13.jar --help # TODO: The PlantUML jar switches focus to the desktop is if it would # attempt to open a window each time it is invoked. end |
.find_path ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/pg-verify/puml/puml.rb', line 8 def self.find_path # Return by settings path if that exists return Settings.puml.path if !Settings.puml.path.blank? && File.file?(Settings.puml.path) # Fall back to looking in the addon directory candidates = Dir[File.join(PgVerify.addon_dir, "plantuml-*.jar")] return candidates.sort.first unless candidates.empty? end |