From 48c46a77893f472890cb06366d89eba6492d8c27 Mon Sep 17 00:00:00 2001 From: Elliot Anders Date: Fri, 4 Nov 2022 15:14:15 -0700 Subject: [PATCH] Remove debugging, tests are passing --- lib/pg_fixtures.rb | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/pg_fixtures.rb b/lib/pg_fixtures.rb index fe8c795..1ab8e4b 100644 --- a/lib/pg_fixtures.rb +++ b/lib/pg_fixtures.rb @@ -41,8 +41,6 @@ def store(force: false) # truncating each table before loading def restore truncate - # NOTE: you must store the connection information in `.pg_pass` for this to work - # puts "Running psql #{db_options} #{db_name} -f #{file_path}" `psql #{db_options} -f #{file_path}` fix_sequences end @@ -54,19 +52,10 @@ def exists? private def pg_dump - # NOTE: you must store the connection information in `.pg_pass` for this to work - # puts "Running: pg_dump #{db_options} #{pg_table_string} --data-only #{db_name} > #{file_path}" - puts `cat ~/.pgpass` - puts "pg_dump #{db_options} #{pg_table_string} --data-only > #{file_path}" `pg_dump #{db_options} #{pg_table_string} --data-only > #{file_path}` end def db_options - # [].tap do |options| - # options << "-h #{host}" if host.present? - # options << "-U #{username}" if username.present? - # options << "-p #{port}" if port.present? - # end.join(' ') "postgresql://#{username}:#{password}@#{host}:#{port}/#{db_name}" end