Package org.platformlayer.service.imagefactory.OperatingSystem

Examples of org.platformlayer.service.imagefactory.OperatingSystem.Distribution


    if (Strings.isNullOrEmpty(operatingSystemRecipe.distribution)) {
      return OperatingSystem.DebianSqueeze;
    }

    Distribution distribution = Distribution.parse(operatingSystemRecipe.distribution);

    String version = operatingSystemRecipe.version;
    if (Strings.isNullOrEmpty(version)) {
      version = distribution.getDefaultOsVersion();
    }

    return new OperatingSystem(distribution, version);
  }
View Full Code Here

TOP

Related Classes of org.platformlayer.service.imagefactory.OperatingSystem.Distribution

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.