文件操作 - branch.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/parser/ast/branch.rb
编辑文件内容
# frozen_string_literal: true # The parent class of all AST objects that contain other AST objects. # Everything but the really simple objects descend from this. It is # important to note that Branch objects contain other AST objects only -- # if you want to contain values, use a descendant of the AST::Leaf class. # # @api private class Puppet::Parser::AST::Branch < Puppet::Parser::AST include Enumerable attr_accessor :pin, :children def each @children.each { |child| yield child } end def initialize(children: [], **args) @children = children super(**args) end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件