Sha256: 5650ef751d848493f7994e775be2a7f8bf2c742b13e4c1603be6a037f66b60e0

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

module Timber
  module Probes
    class Server < Probe
      class << self
        attr_accessor :inserted
      end

      def insert!
        return true if self.class.inserted == true
        context = Contexts::Server.new
        # Note we don't use a block here, this is because
        # the context is persistent.
        CurrentContext.add(context)
        self.class.inserted = true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timberio-1.0.0.beta1 lib/timber/probes/server.rb