# Try setting the config entry
config_par = {:key => 'fortune.path', :value => [fortune], :silent => true }
debug "Setting fortune.path to #{fortune}"
# Try setting the config entry
config_par = {:key => 'fortune.path', :value => [fortune], :silent => true }
debug "Setting fortune.path to #{fortune}"
# Print the fortune categories
def categories(m, params)
fortune = find_fortune(m)
# Print the fortune categories
def categories(m, params)
fortune = find_fortune(m)
## list all fortune databases
categories = Utils.safe_exec(fortune, "-f").split(/\n+ */).map{ |f|
## list all fortune databases
categories = Utils.safe_exec(fortune, "-f").split(/\n+ */).map{ |f|
end
plugin = FortunePlugin.new
plugin.map 'fortune categories', :action => "categories"
end
plugin = FortunePlugin.new
plugin.map 'fortune categories', :action => "categories"