diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-05-29 19:45:23 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-05-29 19:45:23 -0400 |
commit | d8369e7a159aaa2a1b12ed7ba6ede361e62cea9a (patch) | |
tree | 3d2139ea94b0cdb35c8b4523c911aab18b2d1de2 /lib/sisu/v4/dbi.rb | |
parent | v4 v5: document version check, disable (diff) |
v4 v5: cgi helper script, sample search form generator, adjust/improve
* adds settings
* db type --db-pq or db-sqlite
* webserver for cgi script & db --webserv-search=''
* webserver for sisu ouptut files --webserv-output=''
* cgi search form link name --cgi-search-form-name=''
* db user (pg) --db-user=''
Diffstat (limited to 'lib/sisu/v4/dbi.rb')
-rw-r--r-- | lib/sisu/v4/dbi.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sisu/v4/dbi.rb b/lib/sisu/v4/dbi.rb index c05d61fb..867585dd 100644 --- a/lib/sisu/v4/dbi.rb +++ b/lib/sisu/v4/dbi.rb @@ -107,7 +107,11 @@ module SiSU_DBI @conn=@db.psql.conn_dbi rescue if @opt.mod.inspect=~/--(createall|create)/ - puts %{manually create the database: "#{@db.db}" if it does not yet exist} + cX=SiSU_Screen::Ansi.new(@opt.cmd).cX + puts <<-WOK +manually create the database: "#{cX.green}#{@db.db}#{cX.off}" if it does not yet exist + #{cX.yellow}createdb #{@db.db}#{cX.off} + WOK #sudo su -p postgres; createdb #{@db.db}; #[createuser?] end ensure |