Parent

Yapra::LegacyPlugin::Base

Attributes

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

Public Class Methods

new(pipeline, plugin_path) click to toggle source
# File lib/yapra/legacy_plugin/base.rb, line 10
def initialize(pipeline, plugin_path)
  @_yapra_pipeline     = pipeline
  @_yapra_run_method  = File.basename(plugin_path, '.*')
  instance_eval( @source = File.read(plugin_path).toutf8, plugin_path.to_s, 1)
end

Public Instance Methods

_yapra_run_as_legacy_plugin(config, data) click to toggle source
# File lib/yapra/legacy_plugin/base.rb, line 24
def _yapra_run_as_legacy_plugin(config, data)
  self.__send__(self._yapra_run_method, config, data)
end
eval_pragger(command_array, data) click to toggle source
# File lib/yapra/legacy_plugin/base.rb, line 20
def eval_pragger(command_array, data)
  pipeline.execute_plugins(command_array, data)
end
logger() click to toggle source
# File lib/yapra/legacy_plugin/base.rb, line 16
def logger
  Yapra::Runtime.logger
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.