data_keeper 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1dc4571443a29e3b6e5ef297eaf58bcc904245f2fa03e9afdbcb8004156163a3
4
- data.tar.gz: 8eeb45101080f53b64365b28a3d5b03201ff22bf57399682dfeeac439df59496
3
+ metadata.gz: 0442b3f4ba1b60c62570ca379d4a5d6f2a2181ec9cb7561107d52a3492b62ec5
4
+ data.tar.gz: e7594ccf321cd010c5cf74926ff0dd881d4aee7e6c142b204a58c9f9df137ebd
5
5
  SHA512:
6
- metadata.gz: 6736489028cef881ae0c24617d87f54ac67d727121350e6a6c6bccbd1a13cc5c0eff21809b4a7705e34740a72270bebd7a65a6042dd253d98ee5cc4bc4455c8b
7
- data.tar.gz: 30b58fe74b9b2c4beda31b7fb345bf2be6907c3f60e448cf7634e1458cf7ed6cff48662798b91dae4bd443b68ae680b01813595b0a95632a4a51f9e17e9f4b3b
6
+ metadata.gz: 12a6f3303abd4528976c51e49361f183b306fc352df0d9bc8cb3c2e44845f61920f8b9bf4e70c438cd42a8a33703dd98693a71c10f0a79e90d5015c8ac2977bb
7
+ data.tar.gz: a5b9ecb78feecd034287fd86e34bdbd151d028a61d0be6ea58494b35102c3080d2c7c97eb3c5816d470a66a2f52a44c773a64a96ee2e3d3a01562ad5b8fc101c
@@ -24,6 +24,13 @@ module DataKeeper
24
24
  private
25
25
 
26
26
  def load_full_database!
27
+ cmd = Terrapin::CommandLine.new(
28
+ 'psql',
29
+ "#{connection_args} -d :database -c :command",
30
+ environment: psql_env
31
+ )
32
+ cmd.run(database: database, host: host, port: port, command: "drop schema if exists public")
33
+
27
34
  pg_restore = Terrapin::CommandLine.new(
28
35
  'pg_restore',
29
36
  "#{connection_args} -j 4 --no-owner --dbname #{database} #{@file.path} 2>/dev/null",
@@ -1,3 +1,3 @@
1
1
  module DataKeeper
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_keeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Campos
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-06 00:00:00.000000000 Z
11
+ date: 2021-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord