freydis 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +3 -0
- data/lib/freydis/secrets/archive.rb +11 -1
- data/lib/freydis/version.rb +1 -1
- data/lib/mods/exec.rb +4 -2
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aca3e518674824172a35fc8e79f45d1ccb5d435376aa46ca53e1886096640c5d
|
4
|
+
data.tar.gz: ca393f18dabf26e8e8204014f1d04b1db74e467653c8c056ab7618410bfeb60d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d939115ae6697645af7f6e3adf044d25e6303a09c1791fa2d082924613f38791c072eb31252e3c85e42577984494669d29acd5714cde2084f28fe56f9a968ca5
|
7
|
+
data.tar.gz: d9c305c92139b2c47eb9f6ac3aa31b99de511df6d40fabac5dde40e8cc425331b302d1bca3d7fbf50d30fbec5878f8a1e31b4cfe2e5b6f8873c20a7dfbf279a5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -30,7 +30,8 @@ module Freydis
|
|
30
30
|
|
31
31
|
# Restore the most recent archive in your $HOME
|
32
32
|
def restore
|
33
|
-
last_archive =
|
33
|
+
last_archive = find_last_archive
|
34
|
+
error 'No archive found.' unless last_archive
|
34
35
|
|
35
36
|
mkdir @restore_dir
|
36
37
|
info "Restoring #{last_archive}..."
|
@@ -48,6 +49,15 @@ module Freydis
|
|
48
49
|
#{@gpg.pubkey_path}])
|
49
50
|
end
|
50
51
|
|
52
|
+
def find_last_archive
|
53
|
+
if Process.uid == 0
|
54
|
+
Dir.glob("#{@workdir}/#{CONFIG.gpg_recipient}*").sort[0]
|
55
|
+
else
|
56
|
+
archive = `sudo ls #{@workdir}/ | grep #{CONFIG.gpg_recipient} | sort | head -1`.chomp
|
57
|
+
"#{@workdir}/#{archive}" if archive
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
51
61
|
private
|
52
62
|
|
53
63
|
def search_paths(paths)
|
data/lib/freydis/version.rb
CHANGED
data/lib/mods/exec.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freydis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- szorfein
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
aEJeKq4/BlIwMlXPe+W5C8zp2i8hgG1/OYbwbGE1p2iRi1NIK7G/HyRqQjOqJxzE
|
37
37
|
LLknX69FN7/G
|
38
38
|
-----END CERTIFICATE-----
|
39
|
-
date: 2022-09
|
39
|
+
date: 2022-11-09 00:00:00.000000000 Z
|
40
40
|
dependencies: []
|
41
41
|
description: 'Freydis is a CLI tool to encrypt a disk device, backup and restore easyly.
|
42
42
|
Freydis use `cryptsetup` and `rsync` mainly.
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
94
94
|
- cryptsetup
|
95
95
|
- rsync
|
96
|
-
rubygems_version: 3.3.
|
96
|
+
rubygems_version: 3.3.23
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Backup and Restore data from encrypted device.
|
metadata.gz.sig
CHANGED
Binary file
|