// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.provision;

/**
 * Systems in hosted Vespa
 *
 * @author mpolden
 */
public enum SystemName {

    /** Local development system */
    dev,

    /** Continuous deployment system */
    cd,

    /** Production system */
    main;

    public static SystemName defaultSystem() {
        return main;
    }

    public static SystemName from(String value) {
        switch (value) {
            case "dev": return dev;
            case "cd": return cd;
            case "main": return main;
            default: throw new IllegalArgumentException(String.format("'%s' is not a valid system", value));
        }
    }

}

@@ -364,16 +364,73 @@
     main
+,%0A%0A    /** System accessible for the public */%0A    Public
 ;%0A%0A    p
@@ -678,24 +678,108 @@
 eturn main;%0A
+            case %22public%22: return Public;%0A            case %22Public%22: return Public;%0A
             

Add public system name