aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-04-16 10:16:59 -0400
committerRalph Amissah <ralph@amissah.com>2010-04-16 10:16:59 -0400
commit221cfa4043a1e9423a6ed4222fb41ef68b8fd73d (patch)
treed2672b93a05d27edd46087108719b9ed88efcb4e
parentparam checks metadata string lengths against set db column sizes (diff)
db, sysenv, sisurc.yml determine whether to share sisu markup source in db
-rw-r--r--conf/sisu/v2/sisurc.yml1
-rw-r--r--lib/sisu/v2/sysenv.rb6
2 files changed, 7 insertions, 0 deletions
diff --git a/conf/sisu/v2/sisurc.yml b/conf/sisu/v2/sisurc.yml
index 7a3e32af..418cdfd1 100644
--- a/conf/sisu/v2/sisurc.yml
+++ b/conf/sisu/v2/sisurc.yml
@@ -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]''
diff --git a/lib/sisu/v2/sysenv.rb b/lib/sisu/v2/sysenv.rb
index 88195630..c857468f 100644
--- a/lib/sisu/v2/sysenv.rb
+++ b/lib/sisu/v2/sysenv.rb
@@ -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']) \