Module: Ace::Demo::Atoms::AggCommandBuilder
- Defined in:
- lib/ace/demo/atoms/agg_command_builder.rb
Class Method Summary collapse
Class Method Details
.build(input_path:, output_path:, font_size: nil, theme: nil, font_family: nil, agg_bin: "agg") ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/ace/demo/atoms/agg_command_builder.rb', line 9 def build(input_path:, output_path:, font_size: nil, theme: nil, font_family: nil, agg_bin: "agg") cmd = [agg_bin] cmd.concat(["--font-size", font_size.to_s]) unless font_size.nil? cmd.concat(["--theme", theme.to_s]) if present?(theme) cmd.concat(["--font-family", font_family.to_s]) if present?(font_family) cmd.concat([input_path, output_path]) cmd end |