class Bugzilla::Plugin::Template
rdoc
Bugzilla::Plugin::Template
¶ ↑
Attributes
hostname[R]
Public Class Methods
inherited(subclass)
click to toggle source
# File lib/bugzilla/plugin.rb, line 41 def self.inherited(subclass) @@plugins << subclass end
new()
click to toggle source
# File lib/bugzilla/plugin.rb, line 35 def initialize @hostname = nil end
Public Instance Methods
parserhook(parser, argv, opts)
click to toggle source
# File lib/bugzilla/plugin.rb, line 60 def parserhook(parser, argv, opts); end
posthook(cmd, opts)
click to toggle source
# File lib/bugzilla/plugin.rb, line 64 def posthook(cmd, opts); end
prehook(cmd, opts)
click to toggle source
# File lib/bugzilla/plugin.rb, line 62 def prehook(cmd, opts); end
run(hook, host, *args)
click to toggle source
# File lib/bugzilla/plugin.rb, line 45 def run(hook, host, *args) @@plugins.each do |k| i = k.new next unless i.hostname == host || host.nil? case hook when :parser i.parserhook(*args) when :pre i.prehook(*args) when :post i.posthook(*args) end end end