Sha256: 0582c52a4b2b082a7b6827cd0c2e796d0f23011e5ea4e56b98a10df32e05e89b

Contents?: true

Size: 592 Bytes

Versions: 9

Compression:

Stored size: 592 Bytes

Contents

# A blank area for our script to live in.
# Everything is instance_e{val,exec}'d against this
# to eliminate instance var and method def conflicts against other
# objects
class LogStash::Filters::Ruby::Script::ExecutionContext
  def initialize(name, logger)
    # Namespaced with underscore so as not to conflict with anything the user sets
    @__name__ = name
    @__logger__ = logger
  end

  def logger
    @__logger__
  end

  def register(params)
    logger.debug("skipping register since the script didn't define it")
  end

  def to_s
    "<ExecutionContext #{@__name__}>"
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logstash-filter-ruby-3.1.8 lib/logstash/filters/ruby/script/execution_context.rb
logstash-filter-ruby-3.1.7 lib/logstash/filters/ruby/script/execution_context.rb
logstash-filter-ruby-3.1.6 lib/logstash/filters/ruby/script/execution_context.rb
logstash-filter-ruby-3.1.5 lib/logstash/filters/ruby/script/execution_context.rb
logstash-filter-ruby-3.1.4 lib/logstash/filters/ruby/script/execution_context.rb
logstash-filter-ruby-3.1.3 lib/logstash/filters/ruby/script/execution_context.rb
logstash-filter-ruby-3.1.2 lib/logstash/filters/ruby/script/execution_context.rb
logstash-filter-ruby-3.1.1 lib/logstash/filters/ruby/script/execution_context.rb
logstash-filter-ruby-3.1.0 lib/logstash/filters/ruby/script/execution_context.rb