Class NodeDistributionValidator
- java.lang.Object
-
- org.siouan.frontendgradleplugin.core.NodeDistributionValidator
-
public class NodeDistributionValidator extends java.lang.ObjectValidates a Node distribution by comparing its SHA-256 hash against the one officially published.
-
-
Constructor Summary
Constructors Constructor Description NodeDistributionValidator(org.gradle.api.Task task, org.gradle.api.logging.LogLevel loggingLevel, org.siouan.frontendgradleplugin.core.Downloader downloader, org.siouan.frontendgradleplugin.core.NodeDistributionChecksumReader checksumReader, org.siouan.frontendgradleplugin.core.FileHasher fileHasher, java.nio.file.Path installDirectory)Builds a validator of a Node distribution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(java.net.URL distributionUrl, java.nio.file.Path distributionFile)
-
-
-
Constructor Detail
-
NodeDistributionValidator
public NodeDistributionValidator(org.gradle.api.Task task, org.gradle.api.logging.LogLevel loggingLevel, org.siouan.frontendgradleplugin.core.Downloader downloader, org.siouan.frontendgradleplugin.core.NodeDistributionChecksumReader checksumReader, org.siouan.frontendgradleplugin.core.FileHasher fileHasher, java.nio.file.Path installDirectory)Builds a validator of a Node distribution.- Parameters:
task- Refering task.loggingLevel- Default logging level.downloader- Downloader.checksumReader- Reader of checksum's file.fileHasher- Hasher.installDirectory- Install directory.
-
-
Method Detail
-
validate
public void validate(java.net.URL distributionUrl, java.nio.file.Path distributionFile) throws DistributionValidatorException- Throws:
DistributionValidatorException
-
-