403Webshell
Server IP : 66.29.132.122  /  Your IP : 18.117.186.153
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.3.1/lib/hocon/impl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/hocon-1.3.1/lib/hocon/impl/resolve_result.rb
# encoding: utf-8

require 'hocon'
require '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

Youez - 2016 - github.com/yon3zu
LinuXploit