Package io.jenkins.plugins.wiz
Class WizCliSetup
java.lang.Object
io.jenkins.plugins.wiz.WizCliSetup
Configuration class for Wiz CLI setup.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWizCliSetup(boolean isWindows, WizCliVersion version) Creates a new WizCliSetup instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the CLI path with proper prefix based on operating system.Gets the CLI executable name based on OS.Gets the CLI version.
-
Field Details
-
WIZCLI_WINDOWS_PATH
- See Also:
-
WIZCLI_UNIX_PATH
- See Also:
-
-
Constructor Details
-
WizCliSetup
Creates a new WizCliSetup instance.- Parameters:
isWindows- Whether running on Windowsversion- The CLI version
-
-
Method Details
-
getVersion
Gets the CLI version.- Returns:
- The CLI version
-
getExecutableName
Gets the CLI executable name based on OS.- Returns:
- The appropriate CLI executable name
-
getCliCommand
Gets the CLI path with proper prefix based on operating system.- Returns:
- The CLI command appropriate for the current OS
-