文件操作 - resolve_result.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.4.0/lib/hocon/impl/resolve_result.rb
编辑文件内容
# encoding: utf-8 require_relative '../../hocon' require_relative '../../hocon/impl' # value is allowed to be null class Hocon::Impl::ResolveResult ConfigBugOrBrokenError = Hocon::ConfigError::ConfigBugOrBrokenError attr_accessor :context, :value def initialize(context, value) @context = context @value = value end def self.make(context, value) self.new(context, value) end def as_object_result unless @value.is_a?(Hocon::Impl::AbstractConfigObject) raise ConfigBugOrBrokenError.new("Expecting a resolve result to be an object, but it was #{@value}") end self end def as_value_result self end def pop_trace self.class.make(@context.pop_trace, value) end def to_s "ResolveResult(#{@value})" end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件