Class: Metanorma::Plugin::Plantuml::Config
- Inherits:
-
Object
- Object
- Metanorma::Plugin::Plantuml::Config
- Defined in:
- lib/metanorma/plugin/plantuml/config.rb
Instance Attribute Summary collapse
-
#java_path ⇒ Object
Returns the value of attribute java_path.
-
#memory_limit ⇒ Object
Returns the value of attribute memory_limit.
-
#temp_dir ⇒ Object
Returns the value of attribute temp_dir.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #jvm_options ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
11 12 13 14 15 |
# File 'lib/metanorma/plugin/plantuml/config.rb', line 11 def initialize @java_path = "java" @memory_limit = "1024m" @temp_dir = nil end |
Instance Attribute Details
#java_path ⇒ Object
Returns the value of attribute java_path.
9 10 11 |
# File 'lib/metanorma/plugin/plantuml/config.rb', line 9 def java_path @java_path end |
#memory_limit ⇒ Object
Returns the value of attribute memory_limit.
9 10 11 |
# File 'lib/metanorma/plugin/plantuml/config.rb', line 9 def memory_limit @memory_limit end |
#temp_dir ⇒ Object
Returns the value of attribute temp_dir.
9 10 11 |
# File 'lib/metanorma/plugin/plantuml/config.rb', line 9 def temp_dir @temp_dir end |
Instance Method Details
#jvm_options ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/metanorma/plugin/plantuml/config.rb', line 17 def = [ "-Xss5m", "-Xmx#{memory_limit}", "-Djava.awt.headless=true", ] << "-Dapple.awt.UIElement=true" if RbConfig::CONFIG["host_os"].match?(/darwin|mac os/) end |