aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v6/se_db.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2014-08-08 00:16:16 -0400
committerRalph Amissah <ralph@amissah.com>2014-08-08 00:16:16 -0400
commit64e5c9120ffb7a65b96eded0850f481e116f1d3f (patch)
tree201a7c37c9cc8f18a3f760fba6d4202cd0edad43 /lib/sisu/v6/se_db.rb
parentv6: commandline, --act0 to --act9, rc-config with flag:act[0-9] (diff)
v6: use opt.act, code internals (simplify, cleaner; remove opt.cmd & opt.mod)
* v5 dp, indentation changed to retain easy comparison with v6
Diffstat (limited to 'lib/sisu/v6/se_db.rb')
-rw-r--r--lib/sisu/v6/se_db.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v6/se_db.rb b/lib/sisu/v6/se_db.rb
index 37b51ed2..542b4ef3 100644
--- a/lib/sisu/v6/se_db.rb
+++ b/lib/sisu/v6/se_db.rb
@@ -94,7 +94,7 @@ module SiSU_Info_Db
def psql
def user(opt=nil)
if opt \
- and opt.mod.inspect =~/--db-user[=-]["']?(\S+)["']+/
+ and opt.selections.str.inspect =~/--db-user[=-]["']?(\S+)["']+/
$1
elsif opt \
and opt.mod =~/--webserv[=-]webrick/
@@ -176,7 +176,7 @@ module SiSU_Db_Op
begin
@md=md
rescue
- SiSU_Screen::Ansi.new(md.opt.cmd,$!,$@).rescue do
+ SiSU_Screen::Ansi.new(md.opt.selections.str,$!,$@).rescue do
__LINE__.to_s + ':' + __FILE__
end
ensure