Class Deploy
java.lang.Object
io.github.antod3v.pterodactyl.extension.Deploy
Deploy represents the deployment process for a project.
It provides methods for getting the local build output file, the remote file name,
the list of deployment commands, and executing a specific plugman command.
-
Constructor Summary
ConstructorsConstructorDescriptionDeploy(org.gradle.api.Project project) Initializes a new instance of the Deploy class with the specified project. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the list of commands to execute.Retrieves the local build output file.Retrieves the name of the plugin from the plugin.yml file.Retrieves the name of the remote file.Retrieves the Plugman command to reload the plugin.
-
Constructor Details
-
Deploy
public Deploy(org.gradle.api.Project project) Initializes a new instance of the Deploy class with the specified project.- Parameters:
project- The project to be deployed.
-
-
Method Details
-
getLocalBuildOutput
Retrieves the local build output file.- Returns:
- the local build output file
-
getRemoteFileName
Retrieves the name of the remote file.- Returns:
- the name of the remote file
-
getCommands
Retrieves the list of commands to execute.- Returns:
- the list of commands to execute
-
usePlugmanCommand
Retrieves the Plugman command to reload the plugin.- Returns:
- the Plugman command to reload the plugin
-
getPluginName
Retrieves the name of the plugin from the plugin.yml file.- Returns:
- the name of the plugin
- Throws:
IllegalStateException- if the plugin.yml file is not found or does not have a name field
-