> +import org.jclouds.logging.Logger;
> +
> +import com.google.common.base.Function;
> +import com.google.common.base.Optional;
> +import com.google.common.base.Predicate;
> +
> +/**
> + * Transforms a standard drive in an image that can be used to create nodes.
> + *
> + * @author Ignasi Barrera
> + */
> +@Singleton
> +public class StandardDriveToWellKnownImage implements
> Function<StandardDrive, WellKnownImage> {
> +
> + private static final Pattern UNIX_VERSION_PATTERN =
> Pattern.compile("[^\\d]*(\\d+(?:\\.\\d+)*).*");
> + private static final Pattern WINDOWS_VERSION_PATTERN =
> Pattern.compile("[^\\d]*(\\d+.*)");
A couple of comments to describe in a "human-readable" way what these patterns
will look like? See e.g.
[JcloudsVersion](https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/JcloudsVersion.java#L45)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/362/files#r13033767