heroku-api-postgres 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docs/services.md +5 -1
- data/lib/heroku/api/postgres/backups.rb +1 -1
- data/lib/heroku/api/postgres/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c90ef28a844e1ea19534eeb565472875bbb8c049c19075bad257198a2ec00a5
|
4
|
+
data.tar.gz: 7d185232a2d4667c267326948ada22bddf479b196825e7a67e1398f789626d66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f776c9d1aeb9e6fc4bae092a6b11d9d5db88376a33932fc1e3b315262a44d5b762a971cc0ab0945c53fad4ae421bfce14629d9e0d01457aefdb2fab7c730190f
|
7
|
+
data.tar.gz: b05b444642bca56f8d69f2bb09a109c87c080a761b7fa85f13376c0a139689a4a3689f461a72af9bb345c761282f9bbc2651d5b20e3ab2990b94247135083c74
|
data/docs/services.md
CHANGED
@@ -19,7 +19,11 @@ The command returns immediately, without waiting for the capture to be completed
|
|
19
19
|
|
20
20
|
- [x] pg:backups:info --> `client.backups.info(app_id, backup_id)`
|
21
21
|
|
22
|
-
- [
|
22
|
+
- [x] pg:backups:restore --> `client.backups.restore(database_id, dump_url)`
|
23
|
+
The command works only with public URLs. It does not support all the features of the original
|
24
|
+
`heroku pg:backups:restore` command, like restoring directly from another database.
|
25
|
+
The command returns immediately, without waiting for the capture to be completed.
|
26
|
+
You can use the command `client.backups.wait(app_id, restore[:num])` to wait for it to be ready.
|
23
27
|
|
24
28
|
- [x] pg:backups:schedule --> `client.backups.schedule(database_id)`
|
25
29
|
|
@@ -42,7 +42,7 @@ module Heroku
|
|
42
42
|
def wait(app_id, backup_id, options = { wait_interval: 3 })
|
43
43
|
while true do
|
44
44
|
backup = info(app_id, backup_id)
|
45
|
-
yield(backup)
|
45
|
+
yield(backup) if block_given?
|
46
46
|
break if backup[:finished_at] && backup[:succeeded]
|
47
47
|
sleep(options[:wait_interval])
|
48
48
|
end
|