snapsync 0.3.3 → 0.3.4
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/README.md +4 -0
- data/lib/snapsync/partitions_monitor.rb +3 -1
- data/lib/snapsync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4639e92e1a8e69da3e924d648eeeae80cfdb392
|
|
4
|
+
data.tar.gz: 870aae2667103317cfff0fe1b6592c204a297d60
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9570aafa0a365db3a621849c442dfaae87f95450e4352ab748cb84e4b88abc2f0525d95f3d4fa0395b38534f3720aef0e71432eec71c2a54663aeab74d40c51c
|
|
7
|
+
data.tar.gz: 16e22e9ade691d507c7ab2a60d3a046f97157c55e9af1483bf33fc55b71cecdc7899f4ebf4ef62cc83a7de4becd62988a9c5367c95d070010540c836d179f6cb
|
data/README.md
CHANGED
|
@@ -71,6 +71,10 @@ provided by auto-sync, run 'snapsync' without arguments to get all the
|
|
|
71
71
|
possibilities. Targets have configuration files that allow to fine-tune
|
|
72
72
|
snapsync's automated behaviour to that effect.
|
|
73
73
|
|
|
74
|
+
'''NOTE''' thor, the underlying library that handles snapsync's command line
|
|
75
|
+
interface, has a bug in which the `--no-` prefix is often not recognized
|
|
76
|
+
properly. Use e.g. `--all=f` instead of `--no-all`
|
|
77
|
+
|
|
74
78
|
## Future development
|
|
75
79
|
|
|
76
80
|
The main two functionalities that I plan to add to snapsync are having a
|
|
@@ -30,6 +30,7 @@ module Snapsync
|
|
|
30
30
|
|
|
31
31
|
def partition_of(dir)
|
|
32
32
|
rel = Pathname.new("")
|
|
33
|
+
dir = dir.expand_path
|
|
33
34
|
while !dir.mountpoint?
|
|
34
35
|
rel = dir.basename + rel
|
|
35
36
|
dir = dir.dirname
|
|
@@ -44,10 +45,11 @@ module Snapsync
|
|
|
44
45
|
str[0..-2].pack("U*")
|
|
45
46
|
end
|
|
46
47
|
if mount_points.include?(dir.to_s)
|
|
48
|
+
binding.pry
|
|
47
49
|
return uuid, rel
|
|
48
50
|
end
|
|
49
51
|
end
|
|
50
|
-
|
|
52
|
+
raise ArgumentError, "cannot guess the partition UUID of the mountpoint #{dir} for #{dir + rel}"
|
|
51
53
|
end
|
|
52
54
|
|
|
53
55
|
def dirty!
|
data/lib/snapsync/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: snapsync
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sylvain Joyeux
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: logging
|