Service
Use this plugin to run an external script as a service.
This is a useful alternative to writing a full-blown plugin class when the need is simple.
Default pipeline(s) in which this plugin operates.
Instantiate new custom plugin.
FIXME: Custom#initialize seems to be running twice at startup. Why?
# File lib/plugins/syckle/script.rb, line 32 def initialize(context, key, options) super options.each do |phase, script| # skip specific config options next if phase == 'service' next if phase == 'pipeline' or key == 'pipelines' next if phase == 'active' next if phase == 'priority' # remaining options are names of pipeline phases pipelines.each do |pipe| src = %{ def #{pipe}_#{phase} sh "#{script}" end } (class << self; self; end).module_eval(src) end end end
Generated with the Darkfish Rdoc Generator 2.