nxt_heroku_database_backup 0.1.6 → 0.1.7
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/Gemfile.lock +1 -1
- data/lib/nxt_heroku_database_backup/manager.rb +4 -2
- data/lib/nxt_heroku_database_backup/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: 5d6e0021748b1f9e8afa62d97293a89a9d1d5bdcb38b5c4cd39687bbd8884bb9
|
4
|
+
data.tar.gz: 6ae173a99059af6985c5737db9d27772687520e31b29b4dd9c83ad35f7a65fcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d3e3ea10ef894e7adcd625b5a9345a44b9bed4e955031f481d286f13d35030872029c30a90bc770c94ec9946c67f3fb843db1f464e93c057ec238dbbd703146
|
7
|
+
data.tar.gz: 5bc87e2dc70fa8783ddd12f526af63746a4e6f78eec4cbb5fc837bf23a64aadb3f768c9ce89dfc870246f61817e63c39ed3570f31734bb65fbcc96a2e811adb3
|
data/Gemfile.lock
CHANGED
@@ -46,11 +46,13 @@ module NxtHerokuDatabaseBackup
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def encrypt_backup
|
49
|
-
NxtHerokuDatabaseBackup::Encrypter.new(
|
49
|
+
data = NxtHerokuDatabaseBackup::Encrypter.new(
|
50
50
|
pass_phrase: pass_phrase,
|
51
51
|
salt: salt,
|
52
52
|
data: File.read(backup_tmp_path)
|
53
53
|
).call
|
54
|
+
|
55
|
+
File.open(encrypted_backup_tmp_path, 'w') { |f| f.puts(data) }
|
54
56
|
end
|
55
57
|
|
56
58
|
def download_backup
|
@@ -58,7 +60,7 @@ module NxtHerokuDatabaseBackup
|
|
58
60
|
end
|
59
61
|
|
60
62
|
def encrypted_backup_tmp_path
|
61
|
-
"#{backup_tmp_path}.
|
63
|
+
"#{backup_tmp_path}.encrypted"
|
62
64
|
end
|
63
65
|
|
64
66
|
def execute_success_callback
|