blob: b0c2805d620e322b4640c6ceabf7a78ee3f65318 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.task.util.yum;
import com.yahoo.component.Version;
/**
* Red Hat versions and their associated Yum major version.
*
* @author mpolden
*/
public enum YumVersion {
rhel7(3),
rhel8(4);
private final Version version;
YumVersion(int yumMajor) {
this.version = new Version(yumMajor, 0, 0);
}
public Version asVersion() {
return version;
}
}
|