postmodern 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: 0960555c043a47d221233279cfad99aff42e1823
4
- data.tar.gz: b2b3aad195541a02019eb189273681c01f04d922
3
+ metadata.gz: d013705c58d3482656ad333f0076fb2a05ed88fe
4
+ data.tar.gz: 31856208b6be6e7e39c5366dc04ffea60f06143f
5
5
  SHA512:
6
- metadata.gz: a9caa033d35e41635ec8bb5468bb37a5a87c7437082b6a85e8c5d0a59f229200abe15e15e6f8debb99d6835218d832ce9652385de295706ba0f71efb81253027
7
- data.tar.gz: b31a316fa01261427baefbca18e22ee94db961c18ab3d38f314c06d78d5b15a4f3913b862524caff44c183be7d193f173cb25f8e9cb54981b76f181ca3d5314c
6
+ metadata.gz: 15b9cd5442b710534d42e67d9511a2abf2ddf93b5a26bd5bd4bf3de6612a4397c1759d8c2a8750466abd87e74fde6550dba497223a73cebdc2464205edd6a3a3
7
+ data.tar.gz: 12e4927b7fac0afe85b06785ca6ba7a9ed01200efdcb1244d7b931e4ab619dd46166e6b629c8318ff531ff8a0af3c5b182673895caac57eb68548e338e76ed47
data/bin/pg_wal_archive CHANGED
@@ -13,6 +13,11 @@ ENV['WAL_ARCHIVE_PATH']=ARGV[1] # maps to %p in postgres archiving
13
13
  puts "Archiving file: #{ENV['WAL_ARCHIVE_FILE']}"
14
14
  puts "Archiving path: #{ENV['WAL_ARCHIVE_PATH']}"
15
15
 
16
- if system('which pg_wal_archive.local &>/dev/null')
16
+ def local_script_exists?
17
+ `which pg_wal_archive.local >/dev/null 2>/dev/null`
18
+ $?.exitstatus == 0
19
+ end
20
+
21
+ if local_script_exists?
17
22
  `pg_wal_archive.local`
18
23
  end
data/bin/pg_wal_restore CHANGED
@@ -1,5 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- if system('which pg_wal_restore.local &>/dev/null')
3
+ def local_script_exists?
4
+ `which pg_wal_restore.local >/dev/null 2>/dev/null`
5
+ $?.exitstatus == 0
6
+ end
7
+
8
+ if local_script_exists?
4
9
  `pg_wal_restore.local #{ARGV[0]} #{ARGV[1]}`
5
10
  end
@@ -1,3 +1,3 @@
1
1
  module Postmodern
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmodern
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Saxby