From ff2d18994bc5d885362b077fd6c70410b33a9605 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 29 Apr 2017 22:30:06 +0200 Subject: Move `DBShell::InvalidDatabaseAdapter` to the `Client` module Now that we have a `Client` module (46b019abd520870ab159b60c03c45675f64dd88a), it makes so much more sense to put this error class inside it. --- lib/dbshell/client/database.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/dbshell/client') diff --git a/lib/dbshell/client/database.rb b/lib/dbshell/client/database.rb index 35cb9ee..b39581f 100644 --- a/lib/dbshell/client/database.rb +++ b/lib/dbshell/client/database.rb @@ -11,7 +11,7 @@ module DBShell when 'postgresql' DBShell::Client::Postgres else - raise DBShell::InvalidDatabaseAdapter + raise InvalidDatabaseAdapter end end @@ -21,8 +21,8 @@ module DBShell .runshell(connection_params) end end - end -end -class DBShell::InvalidDatabaseAdapter < StandardError; end + class InvalidDatabaseAdapter < StandardError; end + end +end -- cgit v1.2.3