Class DefaultVirtualContext

    • Constructor Detail

      • DefaultVirtualContext

        public DefaultVirtualContext​(@NotNull
                                     OSTypeDetector typeDetector,
                                     boolean isVirtual)
    • Method Detail

      • isVirtual

        public boolean isVirtual()
        Specified by:
        isVirtual in interface VirtualContext
        Returns:
        true if the given step will be run under a virtual environment
      • getTargetOSType

        @NotNull
        public OSType getTargetOSType()
        Specified by:
        getTargetOSType in interface VirtualContext
        Returns:
        actual OS type if the given step will be run under a virtual environment otherwise the agent's OS type
      • resolvePath

        @NotNull
        public String resolvePath​(@NotNull
                                  String path)
        Description copied from interface: VirtualContext
        Converts an agent's path to a path in the current virtual context if it is needed otherwise returns original value of {@param path}
        Specified by:
        resolvePath in interface VirtualContext