Sha256: 4a4991cb01ebdd56916ed1211966441de32cd4997fb2a2ec5c2806f2b318cdfc

Contents?: true

Size: 670 Bytes

Versions: 96

Compression:

Stored size: 670 Bytes

Contents

require 'puppet/indirector/instrumentation_listener'

class Puppet::Indirector::InstrumentationListener::Local < Puppet::Indirector::Code

  desc "Undocumented."

  def find(request)
    Puppet::Util::Instrumentation[request.key]
  end

  def search(request)
    Puppet::Util::Instrumentation.listeners
  end

  def save(request)
    res = request.instance
    Puppet::Util::Instrumentation[res.name] = res
    nil # don't leak the listener
  end

  def destroy(request)
    listener = Puppet::Util::Instrumentation[request.key]
    raise "Listener #{request.key} hasn't been subscribed" unless listener
    Puppet::Util::Instrumentation.unsubscribe(listener)
  end
end

Version data entries

96 entries across 96 versions & 3 rubygems

Version Path
puppet-retrospec-0.12.2 vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.7 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.7-x86-mingw32 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.7-x64-mingw32 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.6 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.6-x86-mingw32 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-retrospec-0.12.1 vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.6-x64-mingw32 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-retrospec-0.12.0 vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.5 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.5-x86-mingw32 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.5-x64-mingw32 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.4 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.4-x86-mingw32 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-3.8.4-x64-mingw32 lib/puppet/indirector/instrumentation_listener/local.rb
puppet-retrospec-0.11.0 vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/local.rb
puppet-retrospec-0.10.0 vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/local.rb
puppet-retrospec-0.9.1 vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/local.rb
puppet-retrospec-0.9.0 vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/local.rb
puppet-retrospec-0.8.1 vendor/gems/puppet-3.7.3/lib/puppet/indirector/instrumentation_listener/local.rb