Applicable to Entuity v20.0 upwards.
Please find below a list of FirmwareManager functions. To use them, you must import the class at the top of the script:
import.com.entuity.configManager.model.ConfigManagerBO;
The functions available to Groovy are static, and therefore should be used as follows:
def output = FirmwareManager.fileOnly("input text");
Function | Description | Parameters | Returns |
---|---|---|---|
fileOnly | gives only the filename of a filepath. |
|
string: filename of file. |
copyImage | copies the target firmware from the firmware folder to the transfer folder. |
|
string: filepath of the copied file. Null if failed. |
copyTransferImage | copies the target firmware from the transfer folder to the firmware folder. |
|
string: filepath of the copied file. Null if failed. |
getFirmwareFile | returns the firmware file from the firmware folder. |
|
file: firmware file. |
getTransferProperties | gets the transfer properties for the given method. |
|
map<string, string>: map of properties to values (transferServer, transferUsername, transferPassword). |
getTransferFolder | returns the transfer folder path if it is valid | string: transfer folder filepath. | |
getTransferFile | returns the firmware file from the transfer folder |
|
file: firmware file. |
genSetSW | generates a StormWorks statement that sets an attribute to a value. |
|
string: stormworks string. |
Comments
0 comments
Please sign in to leave a comment.