文件操作 - metaparameter.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/reference/metaparameter.rb
编辑文件内容
# frozen_string_literal: true Puppet::Util::Reference.newreference :metaparameter, :doc => "All Puppet metaparameters and all their details" do str = %{ Metaparameters are attributes that work with any resource type, including custom types and defined types. In general, they affect _Puppet's_ behavior rather than the desired state of the resource. Metaparameters do things like add metadata to a resource (`alias`, `tag`), set limits on when the resource should be synced (`require`, `schedule`, etc.), prevent Puppet from making changes (`noop`), and change logging verbosity (`loglevel`). ## Available Metaparameters }.dup begin params = [] Puppet::Type.eachmetaparam { |param| params << param } params.sort_by(&:to_s).each { |param| str << markdown_header(param.to_s, 3) str << scrub(Puppet::Type.metaparamdoc(param)) str << "\n\n" } rescue => detail Puppet.log_exception(detail, _("incorrect metaparams: %{detail}") % { detail: detail }) exit(1) end str end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件