java.lang.Object
io.github.antod3v.pterodactyl.extension.Deploy

public class Deploy extends Object
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 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

      public File getLocalBuildOutput()
      Retrieves the local build output file.
      Returns:
      the local build output file
    • getRemoteFileName

      public String getRemoteFileName()
      Retrieves the name of the remote file.
      Returns:
      the name of the remote file
    • getCommands

      public List<String> getCommands()
      Retrieves the list of commands to execute.
      Returns:
      the list of commands to execute
    • usePlugmanCommand

      public String usePlugmanCommand()
      Retrieves the Plugman command to reload the plugin.
      Returns:
      the Plugman command to reload the plugin
    • getPluginName

      public String 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