Class SNPGuestWrapperFactory

java.lang.Object
com.suse.coco.module.snpguest.execution.SNPGuestWrapperFactory

public class SNPGuestWrapperFactory extends Object
  • Field Details

  • Constructor Details

    • SNPGuestWrapperFactory

      private SNPGuestWrapperFactory()
  • Method Details

    • setRuntime

      public static void setRuntime(Runtime runtimeIn)
      Method to specify a runtime. For unit testing.
      Parameters:
      runtimeIn - the runtime used to execute processes
    • createSNPGuestWrapper

      public static AbstractSNPGuestWrapper createSNPGuestWrapper()
      Creates a SNPGuestWrapper instance with the right version
      Returns:
      the SNPGuestWrapper
    • notFoundSetFallback

      private static SNPGuestWrapperFactory.SNPGuestVersion notFoundSetFallback()
    • findVersion

      public static SNPGuestWrapperFactory.SNPGuestVersion findVersion()
      tries to find the snpguest tool version
      Returns:
      the snpguest version