summaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/task/util/yum/YumVersion.java
blob: 8eba4561805c2fe878461e4bbd45c59767be3e0c (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
// 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/DNF major version.
 *
 * @author mpolden
 */
public enum YumVersion {

    rhel8(4);

    private final Version version;

    YumVersion(int yumMajor) {
        this.version = new Version(yumMajor, 0, 0);
    }

    public Version asVersion() {
        return version;
    }

}