aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sisu/v4/sysenv.rb8
-rw-r--r--lib/sisu/v5/sysenv.rb8
2 files changed, 10 insertions, 6 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']) \
diff --git a/lib/sisu/v5/sysenv.rb b/lib/sisu/v5/sysenv.rb
index edaec7f8..37492716 100644
--- a/lib/sisu/v5/sysenv.rb
+++ b/lib/sisu/v5/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']) \