db, sysenv, sisurc.yml determine whether to share sisu markup source in db
authorRalph Amissah <ralph@amissah.com>
Fri, 16 Apr 2010 14:16:59 +0000 (10:16 -0400)
committerRalph Amissah <ralph@amissah.com>
Fri, 16 Apr 2010 14:16:59 +0000 (10:16 -0400)
conf/sisu/v2/sisurc.yml
lib/sisu/v2/sysenv.rb

index 7a3e32afd7e9b253a3551aec792c0e69677c1e72..418cdfd17d5e058e836f53203f5a0bca06980568 100644 (file)
@@ -83,6 +83,7 @@ default:
 #  port:         '8081'
 #% sql database info, postgresql and sqlite
 #db:
+#  share_source: false # boolean, default is false
 #  postgresql:
 #    port:       # '[port (default is 5432)]'
 #    host:       # '[if not localhost, provide host tcp/ip address or domain name]''
index 881956301155ef051a89d762715dd4bf5b3b2b2f..c857468f76272fdc9bb1197dedc7bdeef37207f8 100644 (file)
@@ -2685,6 +2685,12 @@ WOK
       @rc=@@rc ||=Get_init.instance.yamlrc
       @defaults=Info_env.new.defaults
     end
+    def share_source?
+      ((defined? @rc['db']['share_source']) \
+      && @rc['db']['share_source']==true) \
+      ? @rc['db']['share_source'] \
+      : false
+    end
     def engine
       def default
         ((defined? @rc['db']['engine']['default']) \