Sha256: aaa1afcb13ae4ae9252fc4414135ceeb66f9884cf2edaeeff540bee3b960173e

Contents?: true

Size: 675 Bytes

Versions: 38

Compression:

Stored size: 675 Bytes

Contents

require 'puppet/indirector/instrumentation_probe'
require 'puppet/indirector/code'
require 'puppet/util/instrumentation/indirection_probe'

class Puppet::Indirector::InstrumentationProbe::Local < Puppet::Indirector::Code
  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

Version data entries

38 entries across 38 versions & 3 rubygems

Version Path
puppet-parse-0.1.4 lib/vendor/puppet/indirector/instrumentation_probe/local.rb
puppet-parse-0.1.3 lib/vendor/puppet/indirector/instrumentation_probe/local.rb
puppet-parse-0.1.2 lib/vendor/puppet/indirector/instrumentation_probe/local.rb
puppet-parse-0.1.1 lib/vendor/puppet/indirector/instrumentation_probe/local.rb
puppet-2.7.26 lib/puppet/indirector/instrumentation_probe/local.rb
puppet-2.7.25 lib/puppet/indirector/instrumentation_probe/local.rb
puppet-2.7.24 lib/puppet/indirector/instrumentation_probe/local.rb
puppet-2.7.23 lib/puppet/indirector/instrumentation_probe/local.rb
puppet-2.7.22 lib/puppet/indirector/instrumentation_probe/local.rb
puppet-parse-0.1.0 lib/vendor/puppet/indirector/instrumentation_probe/local.rb
puppet-parse-0.0.6 lib/vendor/puppet/indirector/instrumentation_probe/local.rb
puppet-2.7.21 lib/puppet/indirector/instrumentation_probe/local.rb
puppet-parse-0.0.5 lib/vendor/puppet/indirector/instrumentation_probe/local.rb
puppet-parse-0.0.4 lib/vendor/puppet/indirector/instrumentation_probe/local.rb
puppet-3.0.2 lib/puppet/indirector/instrumentation_probe/local.rb
puppet-3.0.2.rc3 lib/puppet/indirector/instrumentation_probe/local.rb
puppet-3.0.2.rc2 lib/puppet/indirector/instrumentation_probe/local.rb
puppet-3.0.2.rc1 lib/puppet/indirector/instrumentation_probe/local.rb
puppet-parse-0.0.2 lib/vendor/puppet/indirector/instrumentation_probe/local.rb
puppet-2.7.20 lib/puppet/indirector/instrumentation_probe/local.rb