Print config updated to support decktape args.

This commit is contained in:
David Russell 2017-11-30 08:06:13 +07:00
parent be846c046d
commit 7c4b04a6a2
2 changed files with 15 additions and 4 deletions

View File

@ -167,7 +167,8 @@ public class PrintService {
hostname());
String deckTape = diskService.decktape();
String[] cmd = { deckTape, REVEAL, slideshowUrl, filePath};
String[] cmd =
{ deckTape, REVEAL, slideshowUrl, filePath, decktapeArgs()};
int generated = shellService.exec(GIT_PDF, pp, branchPath, cmd);
if (generated != STATUS_OK) {
@ -185,6 +186,11 @@ public class PrintService {
return runtime.config("gitpitch.hostname");
}
private String decktapeArgs() {
String args = runtime.config("gitpitch.decktape.args");
return (args != null) ? args : "";
}
private static final String REVEAL = "reveal";
private static final String PITCHME_PDF = "PITCHME.pdf";
private static final String PRINT_NO_FRAGS = "false";

View File

@ -373,11 +373,16 @@ gitpitch {
home = "/tmp/gitpitch/swap"
}
#
# Absolute path to decktape executable.
#
decktape {
#
# Absolute path to decktape executable.
#
home = "/usr/local/bin/decktape"
#
# Optional args passed to decktape executable.
# For example, to workaround Decktape #103 related to
# Puppeteer Issue #290, uncomment and use the following:
# args = "--no-sandbox"
}
offline {