public class BaseKickstartScriptCommand extends BaseKickstartCommand
Modifier and Type | Field and Description |
---|---|
protected KickstartScript |
script |
ksdata, rebuildPartitionCommands, user
Constructor and Description |
---|
BaseKickstartScriptCommand(java.lang.Long ksidIn,
User userIn)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContents()
Get the contents of the Script as a String
|
java.lang.Boolean |
getErrorOnFail() |
java.lang.String |
getLanguage()
Get the interpereter or language used by this script
/usr/bin/perl, /bin/csh, etc..
|
java.lang.Boolean |
getNoChrootVal() |
boolean |
getRaw()
gets whether the script is raw or not.
|
KickstartScript |
getScript() |
java.lang.String |
getScriptName()
Get the name of this script
|
java.lang.String |
getType()
Get the type of Script this is.
|
void |
setScript(java.lang.String language,
java.lang.String contentsIn,
java.lang.String typeIn,
java.lang.String chrootIn,
boolean templatize,
java.lang.String scriptName,
boolean errorOnFail)
Set the contents and interpereter of the Script
|
findCommandName, getKickstartData, getUser, store
protected KickstartScript script
public BaseKickstartScriptCommand(java.lang.Long ksidIn, User userIn)
ksidIn
- Kickstart Script iduserIn
- owner of scriptpublic KickstartScript getScript()
public void setScript(java.lang.String language, java.lang.String contentsIn, java.lang.String typeIn, java.lang.String chrootIn, boolean templatize, java.lang.String scriptName, boolean errorOnFail)
language
- to use for the scriptcontentsIn
- of the script itselftypeIn
- of script (KickstartScript.TYPE_POST or KickstartScript.TYPE_PRE)chrootIn
- value of chroot ("Y" or "N")templatize
- whether to templatize the script or notscriptName
- name of the scripterrorOnFail
- boolean, do we throw an error if the script fails?public java.lang.String getContents()
public java.lang.String getLanguage()
public java.lang.String getScriptName()
public java.lang.String getType()
public boolean getRaw()
public java.lang.Boolean getNoChrootVal()
public java.lang.Boolean getErrorOnFail()