Sha256: f80f2905ee8400ea48f3b2ffa03e96752aa3d6699295847943b6e80622c9c359

Contents?: true

Size: 1.03 KB

Versions: 280

Compression:

Stored size: 1.03 KB

Contents

#
# Fluentd
#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.
#

module Fluent
  module Plugin
    module OwnedByMixin
      def owner=(plugin)
        @_owner = plugin

        @_plugin_id = plugin.plugin_id
        @_plugin_id_configured = plugin.plugin_id_configured?

        @log = plugin.log
      end

      def owner
        if instance_variable_defined?("@_owner")
          @_owner
        end
      end

      def log
        if instance_variable_defined?("@log")
          @log
        end
      end
    end
  end
end

Version data entries

280 entries across 280 versions & 4 rubygems

Version Path
fluentd-1.16.6-x86-mingw32 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.6-x64-mingw32 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.6-x64-mingw-ucrt lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.6 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.5-x64-mingw-ucrt lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.5-x86-mingw32 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.5-x64-mingw32 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.5 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.4-x64-mingw-ucrt lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.4-x86-mingw32 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.4-x64-mingw32 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.4 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.3-x86-mingw32 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.3-x64-mingw32 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.3-x64-mingw-ucrt lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.3 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.2-x86-mingw32 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.2-x64-mingw32 lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.2-x64-mingw-ucrt lib/fluent/plugin/owned_by_mixin.rb
fluentd-1.16.2 lib/fluent/plugin/owned_by_mixin.rb