- Mastering Puppet 5
- Ryan Russell Yates Jason Southgate
- 45字
- 2021-07-16 17:46:16
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
推薦閱讀
- 電子線路CAD與實(shí)訓(xùn)
- 無線接入網(wǎng)同步性能測(cè)試技術(shù)
- 射頻識(shí)別(RFID)應(yīng)用技術(shù)(第2版)
- 大話移動(dòng)通信
- 物聯(lián)網(wǎng)在中國的探索與實(shí)踐
- 云存儲(chǔ)解析
- 微信小程序開發(fā)實(shí)戰(zhàn)
- 被動(dòng)雷達(dá)寬帶數(shù)字接收機(jī)技術(shù)
- 現(xiàn)代電子產(chǎn)品工藝
- 5G 移動(dòng)性管理技術(shù)
- 快速學(xué)會(huì)看電子電路圖
- 高速信號(hào)傳輸工程化技術(shù):概念與方法
- 電視機(jī)檢修技能零基礎(chǔ)成長
- Cadence Allegro SPB 16.3常用功能與應(yīng)用實(shí)例精講
- 4G無線網(wǎng)絡(luò)原理及優(yōu)化