diff options
author | Ralph Amissah <ralph@amissah.com> | 2015-01-11 22:15:54 -0500 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2015-01-19 23:46:16 -0500 |
commit | 23a3bb799ead9e2b37240762c76d3b300596d6c0 (patch) | |
tree | 4ac37278270617293495fada61abdc8fadfc9902 /lib/sisu/develop/db_drop.rb | |
parent | d: utils_response, ease selection options (diff) |
d: utils_response, rely on module (remove class) extend module
* update a couple of affected files
Diffstat (limited to 'lib/sisu/develop/db_drop.rb')
-rw-r--r-- | lib/sisu/develop/db_drop.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sisu/develop/db_drop.rb b/lib/sisu/develop/db_drop.rb index a65f1e75..f2dd642e 100644 --- a/lib/sisu/develop/db_drop.rb +++ b/lib/sisu/develop/db_drop.rb @@ -55,11 +55,11 @@ =end module SiSU_DbDrop + require_relative 'utils_response' # utils_response.rb class Drop - require_relative 'utils_response' # utils_response.rb + include SiSU_Response def initialize(opt,conn,db_info,sql_type) @opt,@conn,@db_info,@sql_type=opt,conn,db_info,sql_type - @ans=SiSU_Response::Response.new case @sql_type when :sqlite cascade='' @@ -82,7 +82,7 @@ module SiSU_DbDrop case @sql_type when :sqlite puts msg_sqlite - ans=@ans.response?('remove sql database?') + ans=response?('remove sql database?') if ans \ and File.exist?(@db_info.sqlite.db) @conn.close @@ -133,7 +133,7 @@ module SiSU_DbDrop rescue case @sql_type when :sqlite - ans=@ans.response?('remove sql database?') + ans=response?('remove sql database?') if ans and File.exist?(@db_info.sqlite.db); File.unlink(@db_info.sqlite.db) end else |