HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //proc/self/root/usr/lib/ruby/site_ruby/1.8/puppet/indirector/instrumentation_probe/local.rb
require 'puppet/indirector/instrumentation_probe'
require 'puppet/indirector/code'
require 'puppet/util/instrumentation/indirection_probe'

class Puppet::Indirector::InstrumentationProbe::Local < Puppet::Indirector::Code

  desc "Undocumented."

  def find(request)
  end

  def search(request)
    probes = []
    Puppet::Util::Instrumentation::Instrumentable.each_probe do |probe|
      probes << Puppet::Util::Instrumentation::IndirectionProbe.new("#{probe.klass}.#{probe.method}")
    end
    probes
  end

  def save(request)
    Puppet::Util::Instrumentation::Instrumentable.enable_probes
  end

  def destroy(request)
    Puppet::Util::Instrumentation::Instrumentable.disable_probes
  end
end