1 package org.rundeck.api; 2 3 import java.io.InputStream; 4 5 /** 6 * An adhoc script to be executed by Rundeck 7 */ 8 public interface RunAdhocScript extends RunAdhoc { 9 10 /** 11 * InputStream for reading the script to be executed - mandatory 12 * @return 13 */ 14 InputStream getScript(); 15 16 /** 17 * Arguments to the script 18 * @return 19 */ 20 String getArgString(); 21 22 /** 23 * Command string to invoke the script with arguments 24 * @return 25 */ 26 String getScriptInterpreter(); 27 28 /** 29 * If true, quote the script filepath and args to the script interpreter. 30 * @return 31 */ 32 Boolean getInterpreterArgsQuoted(); 33 34 }