Sha256: 7efa8760662fa81e11428ae82912e39fc710ab427d4587feb87c62725bd5e8cf
Contents?: true
Size: 1.12 KB
Versions: 2
Compression:
Stored size: 1.12 KB
Contents
Rbbt.etc.requires.read.split("\n").each do |file| next if file.empty? Log.debug("requiring #{ file }") require file end if Rbbt.etc.requires.exists? Entity.entity_list_cache = Rbbt.var.find.sinatra.entity_lists Entity.entity_map_cache = Rbbt.var.find.sinatra.entity_maps Entity.entity_property_cache = Rbbt.var.find.sinatra.entity_properties Rbbt.etc.entities.read.split("\n").each do |name| next if name.empty? mod = Kernel.const_get name Log.debug("Including Entity::REST for #{ name }") mod.module_eval do include Entity::REST end end if Rbbt.etc.entities.exists? $annotation_repo = Rbbt.var.find(:lib).sinatra.annotation_repo.find Rbbt.etc.persit_properties.yaml.each do |name,list| next if name.empty? mod = Kernel.const_get name mod.module_eval do list.each do |elem| prop, type, repo = elem.split(",").collect{|e| e.strip} Log.debug("Persist #{name} #{prop}: #{[type, repo].compact * ", "}") if repo == 'repo' options = {:annotation_repo => $annotation_repo} else options = {} end persist prop, type, options end end end if Rbbt.etc.persit_properties.exists?
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rbbt-util-5.5.4 | etc/app.d/entities.rb |
rbbt-util-5.5.3 | etc/app.d/entities.rb |