parity 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parity/backup.rb +5 -0
- data/lib/parity/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69b3501fc668254ccfeab23131740fd3c2d42686
|
4
|
+
data.tar.gz: c0ddb0d04dba89434a9fd793c3b49f0580117d59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0beaea10967ef6f1727ac00bac3b6b1c3379380dc28a8ee40171234f06e2822595efa7f01448047ad98e9fc075c39e0bbddffc8f60abf349c22b8afceb52bea1
|
7
|
+
data.tar.gz: c282ee7bb3779665917512eba70629ace7b875295992b28e9d566b439f8b0b3d0e7a50e9e9fbc715f74c4570113cd7edf73e59ae243df79af2d47dee1d23c5c7
|
data/lib/parity/backup.rb
CHANGED
@@ -35,6 +35,7 @@ module Parity
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def restore_to_development
|
38
|
+
ensure_temp_directory_exists
|
38
39
|
download_remote_backup
|
39
40
|
wipe_development_database
|
40
41
|
restore_from_local_temp_backup
|
@@ -56,6 +57,10 @@ module Parity
|
|
56
57
|
HerokuAppName.new(to).to_s
|
57
58
|
end
|
58
59
|
|
60
|
+
def ensure_temp_directory_exists
|
61
|
+
Kernel.system("mkdir -p tmp")
|
62
|
+
end
|
63
|
+
|
59
64
|
def download_remote_backup
|
60
65
|
Kernel.system(
|
61
66
|
"curl -o tmp/latest.backup \"$(heroku pg:backups:url --remote #{from})\"",
|
data/lib/parity/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Croak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-10-06 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: |2
|
15
15
|
Development/staging/production parity makes it easier for
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.
|
56
|
+
rubygems_version: 2.6.11
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: Shell commands for development, staging, and production parity.
|