Sha256: fa2b90a8abf5190e6085612fcfc9805daf897e6b7373653e78b0a2856763244e

Contents?: true

Size: 1.12 KB

Versions: 25

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.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

25 entries across 25 versions & 1 rubygems

Version Path
rbbt-util-5.5.9 etc/app.d/entities.rb
rbbt-util-5.5.8 etc/app.d/entities.rb
rbbt-util-5.5.7 etc/app.d/entities.rb
rbbt-util-5.5.6 etc/app.d/entities.rb
rbbt-util-5.5.5 etc/app.d/entities.rb