Project

General

Profile

« Previous | Next » 

Revision acc14ea7

Added by Marc Dequènes over 13 years ago

  • ID acc14ea708281b1803018600444d4ef0c6c12847

[evol] Librarian/API: discover available records automatically

View differences:

lib/cyborghood-librarian/interface/0_base.rb
node 'Records' do
node ['Persons', 'DnsDomains'] do
children = bot.services.records.class.public_instance_methods(false)
children.collect!{|i| i.camelize }
node children do
object_list = Proc.new do |*args|
obj_name, options = args
options ||= {}

Also available in: Unified diff