aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/cgi_pgsql.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v2/cgi_pgsql.rb')
-rw-r--r--lib/sisu/v2/cgi_pgsql.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/sisu/v2/cgi_pgsql.rb b/lib/sisu/v2/cgi_pgsql.rb
index 071e63e4..7a948366 100644
--- a/lib/sisu/v2/cgi_pgsql.rb
+++ b/lib/sisu/v2/cgi_pgsql.rb
@@ -99,8 +99,7 @@ module SiSU_CGI_pgsql
a=%{ generated sisu_pgsql.cgi,
BASED ON ALREADY EXISTING directories that could potentially be used to populate postgresql db, (-D)
}
- tell=SiSU_Screen::Ansi.new(@opt.cmd,a)
- tell.print_grey
+ SiSU_Screen::Ansi.new(@opt.cmd,a).print_grey
c=case @webserv
when /pwd/; ''
else "if necessary make the directory /usr/lib/cgi-bin :
@@ -112,12 +111,10 @@ module SiSU_CGI_pgsql
a=%{#{c}
#{@env.webserv_base_cgi}/cgi-bin/sisu_pgsql.cgi
}
- tell=SiSU_Screen::Ansi.new(@opt.cmd,a)
- tell.warn
+ SiSU_Screen::Ansi.new(@opt.cmd,a).warn
a="postgresql db used for present directory: #{@db.psql.db}"
b="\n\t(to create and populate postgresql database see 'man sisu' and in particular the -D flag)\n\t[the database to be used for this directory (#{@db.psql.db}) will have to be created manually if it does not exist,\n\tsee 'sisu --help sql'\n\tif you have permission to create databases:\n\t'sisu -d --createdb'\n\tor using postgresql tools directly:\n\t'createdb #{@db.psql.db}'\n\tfor a list of existing databases try 'psql --list']"
- tell=SiSU_Screen::Ansi.new(@opt.cmd,a,b)
- tell.txt_cyan
+ SiSU_Screen::Ansi.new(@opt.cmd,a,b).txt_cyan
else puts 'failed in attempt to write sisu_pgsql.cgi to present directory, is directory writable?'
end
end