文件操作 - any.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/confine/any.rb
编辑文件内容
# frozen_string_literal: true class Puppet::Confine::Any < Puppet::Confine def self.summarize(confines) confines.inject(0) { |count, confine| count + confine.summary } end def pass?(value) !!value end def message(value) "0 confines (of #{value.length}) were true" end def summary result.find_all { |v| v == true }.length end def valid? if @values.any? { |value| pass?(value) } true else Puppet.debug { "#{label}: #{message(@values)}" } false end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件