Class ScriptResourceModelSource
- java.lang.Object
-
- com.dtolabs.rundeck.core.resources.ScriptResourceModelSource
-
- All Implemented Interfaces:
Configurable,ResourceModelSource
public class ScriptResourceModelSource extends java.lang.Object implements Configurable, ResourceModelSource
ScriptResourceModelSource executes a script file to produce resource data in a certain format.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_ARGSstatic java.lang.StringCONFIG_FILEstatic java.lang.StringCONFIG_FORMATstatic java.lang.StringCONFIG_INTERPRETERstatic java.lang.StringCONFIG_INTERPRETER_ARGS_QUOTED
-
Constructor Summary
Constructors Constructor Description ScriptResourceModelSource(Framework framework)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(java.util.Properties configuration)Configure the object with the configuration properties.INodeSetgetNodes()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.dtolabs.rundeck.core.resources.ResourceModelSource
getSourceType, getWriteable
-
-
-
-
Field Detail
-
CONFIG_FILE
public static final java.lang.String CONFIG_FILE
- See Also:
- Constant Field Values
-
CONFIG_INTERPRETER
public static final java.lang.String CONFIG_INTERPRETER
- See Also:
- Constant Field Values
-
CONFIG_ARGS
public static final java.lang.String CONFIG_ARGS
- See Also:
- Constant Field Values
-
CONFIG_INTERPRETER_ARGS_QUOTED
public static final java.lang.String CONFIG_INTERPRETER_ARGS_QUOTED
- See Also:
- Constant Field Values
-
CONFIG_FORMAT
public static final java.lang.String CONFIG_FORMAT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScriptResourceModelSource
public ScriptResourceModelSource(Framework framework)
-
-
Method Detail
-
configure
public void configure(java.util.Properties configuration) throws ConfigurationExceptionDescription copied from interface:ConfigurableConfigure the object with the configuration properties.- Specified by:
configurein interfaceConfigurable- Parameters:
configuration- the properties to use- Throws:
ConfigurationException- if there is an invalid configuration
-
getNodes
public INodeSet getNodes() throws ResourceModelSourceException
- Specified by:
getNodesin interfaceResourceModelSource- Throws:
ResourceModelSourceException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-