文件操作 - facts.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/application/facts.rb
编辑文件内容
# frozen_string_literal: true require_relative '../../puppet/application/indirection_base' class Puppet::Application::Facts < Puppet::Application::IndirectionBase # Allows `puppet facts` actions to be run against environments that # don't exist locally, such as using the `--environment` flag to make a REST # request to a specific environment on a master. There is no way to set this # behavior per-action, so it must be set for the face as a whole. environment_mode :not_required end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件