diff options
-rw-r--r-- | lib/dbshell/postgres_client.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/dbshell/postgres_client.rb b/lib/dbshell/postgres_client.rb index b77e681..1c1c663 100644 --- a/lib/dbshell/postgres_client.rb +++ b/lib/dbshell/postgres_client.rb @@ -1,6 +1,11 @@ class DBShell::PostgresClient EXECUTABLE_NAME = 'psql' + def self.runshell(db_info) + args = self.build_command(db_info) + exec(*args) + end + def self.build_command(db_info) args = [EXECUTABLE_NAME] |