Class HelmCommand<C extends HelmCommand>

    • Field Detail

      • DEFAULT_HELM

        public static final String DEFAULT_HELM
        The default location of the Helm executable.
    • Method Detail

      • getHelmLocation

        public String getHelmLocation()
        Obtain the Helm executable to run.
        Specified by:
        getHelmLocation in interface CLI<C extends HelmCommand>
        Returns:
        the Helm executable to run
      • helmExists

        public boolean helmExists()
        Determine whether the Helm executable that this command would use exists.
        Returns:
        true if the Helm executable exists
      • getCommands

        public String[] getCommands()
        Obtain the Helm command that will be executed.
        Specified by:
        getCommands in interface CLI<C extends HelmCommand>
        Returns:
        the Helm command that will be executed
      • getArguments

        public Arguments getArguments()
        Obtain the arguments to this command.
        Specified by:
        getArguments in interface CLI<C extends HelmCommand>
        Returns:
        the arguments to this command
      • getFlags

        public Arguments getFlags()
        Obtain the flags to this command.
        Specified by:
        getFlags in interface CLI<C extends HelmCommand>
        Returns:
        the flags to this command
      • isFlagsFirst

        public boolean isFlagsFirst()
        Determine whether the flags appear at the start or end of the command line.
        Specified by:
        isFlagsFirst in interface CLI<C extends HelmCommand>
        Returns:
        true if the flags appear at the start or end of the command line
      • execute

        public Application execute​(com.oracle.bedrock.Option... options)
        Execute this Helm command on the LocalPlatform.
        Parameters:
        options - any options to apply to the process
        Returns:
        the Application representing the Helm command execution
      • executeAndWait

        public int executeAndWait​(com.oracle.bedrock.Option... options)
        Execute this Helm command on the LocalPlatform and wait for the command to complete.
        Parameters:
        options - any options to apply to the process
        Returns:
        the return code from the completed command.