文件操作 - abstract_config_node.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.4.0/lib/hocon/impl/abstract_config_node.rb
编辑文件内容
# encoding: utf-8 require_relative '../../hocon/impl' require_relative '../../hocon/parser/config_node' require_relative '../../hocon/config_error' module Hocon::Impl::AbstractConfigNode include Hocon::Parser::ConfigNode def tokens raise Hocon::ConfigError::ConfigBugOrBrokenError, "subclasses of AbstractConfigNode should override `tokens` (#{self.class})" end def render orig_text = StringIO.new tokens.each do |t| orig_text << t.token_text end orig_text.string end def ==(other) other.is_a?(Hocon::Impl::AbstractConfigNode) && (render == other.render) end def hash render.hash end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件