APPLICATIONS
APPLICATIONS
Class ServerHelper This is a helper class to perform actions on server like providing methods to add ,read and update servers.
__construct(\CloudMunch\helper\CloudMunch\AppContext $appContext, \CloudMunch\helper\CloudMunch\loghandling\LogHandler $logHandler)
Constructor to initialise Application Context and LogHandler.
| \CloudMunch\helper\CloudMunch\AppContext | $appContext | |
| \CloudMunch\helper\CloudMunch\loghandling\LogHandler | $logHandler |
checkConnect(string $dns, \CloudMunch\helper\number $sshport = 22) : string
Checks if server is up and running
| string | $dns | : dns of target server |
| \CloudMunch\helper\number | $sshport | : ssh port to be used to check for connection |
Success : displays an appropriate message Failure : exits with a failure status with an appropriate message