Sha256: 46ba6c63c5e1c6c542945883452fc806fee3a64e7d9e959c0528c2839244ca18

Contents?: true

Size: 735 Bytes

Versions: 57

Compression:

Stored size: 735 Bytes

Contents

require 'puppet/indirector'
require 'puppet/util/instrumentation'

# We need to use a class other than Probe for the indirector because
# the Indirection class might declare some probes, and this would be a huge unbreakable
# dependency cycle.
class Puppet::Util::Instrumentation::IndirectionProbe
  extend Puppet::Indirector

  indirects :instrumentation_probe, :terminus_class => :local

  attr_reader :probe_name

  def initialize(probe_name)
    @probe_name = probe_name
  end

  def to_pson(*args)
    result = {
      :document_type => "Puppet::Util::Instrumentation::IndirectionProbe",
      :data => { :name => probe_name }
    }
    result.to_pson(*args)
  end

  def self.from_pson(data)
    self.new(data["name"])
  end
end

Version data entries

57 entries across 57 versions & 3 rubygems

Version Path
puppet-parse-0.1.4 lib/vendor/puppet/util/instrumentation/indirection_probe.rb
puppet-parse-0.1.3 lib/vendor/puppet/util/instrumentation/indirection_probe.rb
puppet-parse-0.1.2 lib/vendor/puppet/util/instrumentation/indirection_probe.rb
puppet-parse-0.1.1 lib/vendor/puppet/util/instrumentation/indirection_probe.rb
puppet-2.7.26 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-2.7.25 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-2.7.24 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.3.2 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.3.1 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.3.1.rc3 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.3.1.rc2 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.3.1.rc1 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.3.0 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.3.0.rc3 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.3.0.rc2 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.2.4 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-2.7.23 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.2.3 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.2.3.rc1 lib/puppet/util/instrumentation/indirection_probe.rb
puppet-3.2.2 lib/puppet/util/instrumentation/indirection_probe.rb