aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2013-05-30 23:06:45 -0400
committerRalph Amissah <ralph@amissah.com>2013-05-30 23:06:45 -0400
commit462a53a0af3d35952d435716adfacda0029bddd4 (patch)
treedecbab620659d801a4dc421e53e45a4d763a7779 /lib/sisu/v4
parentv4 v5: version & changelog (diff)
v4 v5: sysenv, pgsql db connect fix
Diffstat (limited to 'lib/sisu/v4')
-rw-r--r--lib/sisu/v4/sysenv.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/sisu/v4/sysenv.rb b/lib/sisu/v4/sysenv.rb
index 6bc97396..f95622b5 100644
--- a/lib/sisu/v4/sysenv.rb
+++ b/lib/sisu/v4/sysenv.rb
@@ -4067,10 +4067,12 @@ WOK
self
end
def psql
- def user(opt)
- if opt.mod.inspect =~/--db-user[=-]["']?(\S+)["']+/
+ def user(opt=nil)
+ x=if opt \
+ and opt.mod.inspect =~/--db-user[=-]["']?(\S+)["']+/
m=$1
- elsif opt.mod =~/--webserv[=-]webrick/
+ elsif opt \
+ and opt.mod =~/--webserv[=-]webrick/
@env.user
else
((defined? @rc['db']['postgresql']['user']) \