ReadyCmd
Class for ready check commands.Constructors
Parameters
Returns
ReadyCmd
Methods
getCmd()
Returns
string
Functions
waitForFile()
Parameters
Returns
ReadyCmd
ReadyCmd that checks for the file
Example
waitForPort()
ss command to check if a port is open and listening.
Parameters
Returns
ReadyCmd
ReadyCmd that checks for the port
Example
waitForProcess()
pgrep to check if a process exists.
Parameters
Returns
ReadyCmd
ReadyCmd that checks for the process
Example
waitForTimeout()
sleep command to wait for a fixed duration.
Parameters
Returns
ReadyCmd
ReadyCmd that waits for the specified duration
Example
waitForURL()
curl to make HTTP requests and check the response status.
Parameters
Returns
ReadyCmd
ReadyCmd that checks the URL