官术网_书友最值得收藏!

Checking the input value against a newvalues array

We can also validate the provided value of the property with an array of values using the newvalues method, as shown in the following code:

Puppet::Type.newtype(:mynewtype) do
...
newparam(:override) do
defaultto :true
newvalues(:true, :false)
end
...
end

主站蜘蛛池模板: 玉溪市| 吉安市| 宜城市| 潞城市| 榆林市| 安顺市| 衡山县| 肃宁县| 花莲市| 罗江县| 武平县| 万山特区| 永州市| 涟水县| 香港| 稷山县| 咸阳市| 新田县| 长治县| 德庆县| 乌兰察布市| 寿阳县| 寿宁县| 咸宁市| 刚察县| 扎兰屯市| 利川市| 富民县| 酒泉市| 庄河市| 松原市| 邵武市| 珠海市| 临沧市| 通渭县| 合水县| 扶风县| 张家港市| 徐水县| 阳高县| 牡丹江市|