文件操作 - instance_reader.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/pops/serialization/instance_reader.rb
编辑文件内容
# frozen_string_literal: true module Puppet::Pops module Serialization # An InstanceReader is responsible for reading an instance of a complex object using a deserializer. The read involves creating the # instance, register it with the deserializer (so that self references can be resolved) and then read the instance data (which normally # amounts to all attribute values). # Instance readers are registered with of {Types::PObjectType}s to aid the type when reading instances. # # @api private module InstanceReader # @param [Class] impl_class the class of the instance to be created and initialized # @param [Integer] value_count the expected number of objects that forms the initialization data # @param [Deserializer] deserializer the deserializer to read from, and to register the instance with # @return [Object] the instance that has been read def read(impl_class, value_count, deserializer) Serialization.not_implemented(self, 'read') end end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件