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

Setting property and parameter defaults

Let's say we wanted to add an additional override parameter, which we wanted to configure with a default value of false. Here's the Ruby code to express that:

Puppet::Type.newtype(:mynewtype) do
...
newparam(:override) do
defaultto :false
end
...
end
主站蜘蛛池模板: 句容市| 即墨市| 虞城县| 邵武市| 卓尼县| 荔浦县| 宁晋县| 安多县| 双城市| 张家界市| 秦皇岛市| 安徽省| 肥东县| 渑池县| 武威市| 图片| 翁牛特旗| 苗栗市| 正蓝旗| 穆棱市| 新建县| 绵竹市| 湘潭县| 苍山县| 嘉鱼县| 合川市| 新化县| 登封市| 天气| 通辽市| 仁布县| 崇阳县| 沙洋县| 东台市| 财经| 黔东| 甘洛县| 东至县| 白河县| 永春县| 平安县|