Class Yapra::LegacyPlugin::Base
In: lib/yapra/legacy_plugin/base.rb
Parent: Object

Methods

Attributes

_yapra_pipeline  [R] 
_yapra_run_method  [R] 
source  [R] 

Public Class methods

[Source]

    # File lib/yapra/legacy_plugin/base.rb, line 10
10:   def initialize(pipeline, plugin_path)
11:     @_yapra_pipeline     = pipeline
12:     @_yapra_run_method  = File.basename(plugin_path, '.*')
13:     instance_eval( @source = File.read(plugin_path).toutf8, plugin_path.to_s, 1)
14:   end

Public Instance methods

[Source]

    # File lib/yapra/legacy_plugin/base.rb, line 24
24:   def _yapra_run_as_legacy_plugin(config, data)
25:     self.__send__(self._yapra_run_method, config, data)
26:   end

[Source]

    # File lib/yapra/legacy_plugin/base.rb, line 20
20:   def eval_pragger(command_array, data)
21:     pipeline.execute_plugins(command_array, data)
22:   end

[Source]

    # File lib/yapra/legacy_plugin/base.rb, line 16
16:   def logger
17:     Yapra::Runtime.logger
18:   end

[Validate]