# class Puppet::Indirector::InstrumentationListener::Local

### Public Instance Methods

destroy(request) click to toggle source

    # File lib/puppet/indirector/instrumentation_listener/local.rb, line 21
    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

find(request) click to toggle source

    # File lib/puppet/indirector/instrumentation_listener/local.rb, line 7
    def find(request)
      Puppet::Util::Instrumentation[request.key]
    end

save(request) click to toggle source

    # File lib/puppet/indirector/instrumentation_listener/local.rb, line 15
    def save(request)
      res = request.instance
      Puppet::Util::Instrumentation[res.name] = res
      nil # don't leak the listener
    end

search(request) click to toggle source

    # File lib/puppet/indirector/instrumentation_listener/local.rb, line 11
    def search(request)
      Puppet::Util::Instrumentation.listeners
    end