From 67e49a2b278b1512fb39a33a779f68a1389f9849 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 3 May 2010 19:09:54 -0400 Subject: ansi, screen info related, arranging --- lib/sisu/v2/cgi_pgsql.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/sisu/v2/cgi_pgsql.rb') 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 -- cgit v1.2.3