snapsync 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snapsync/cli.rb +2 -2
- data/lib/snapsync/local_target.rb +1 -1
- data/lib/snapsync/partitions_monitor.rb +0 -4
- 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: c809fd16c3f578d58d3af399333f68781bf53ae4
|
4
|
+
data.tar.gz: 4822cfbeb7c7dc00cff374a07dbf55d17a328719
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84c69e553af59dadd780a38905d36751a90854f865026426e0f433aeddd5adca40dfa66851f988a7b3a3c1ae2eede39404242a66d7c3b399ec3a1065aa2f098c
|
7
|
+
data.tar.gz: 7e8c97f3edaa6c0162e6db011a17f0b866c94a2e55b0b06fadbf5ac75bef1aa5a16df39fb6a6a222f590797f72863c3dbdc46d6040d0d83e73fb2e04066ad1ca
|
data/lib/snapsync/cli.rb
CHANGED
@@ -153,13 +153,13 @@ policy for more information
|
|
153
153
|
rescue Exception => policy_validation_error
|
154
154
|
# Try to see if the user forgot to add the NAME option or added
|
155
155
|
# the name option but should not have
|
156
|
-
if options[:auto]
|
156
|
+
if (args.size > 1) && options[:auto]
|
157
157
|
begin
|
158
158
|
normalize_policy(args[1..-1])
|
159
159
|
raise ArgumentError, "--auto is set but it seems that you did not provide a name"
|
160
160
|
rescue InvalidConfiguration
|
161
161
|
end
|
162
|
-
|
162
|
+
elsif args.size > 2
|
163
163
|
begin
|
164
164
|
normalize_policy(args[2..-1])
|
165
165
|
raise ArgumentError, "--auto is not set but it seems that you provided a name"
|
@@ -144,7 +144,7 @@ module Snapsync
|
|
144
144
|
sync_policy = SyncLastPolicy
|
145
145
|
cleanup = SyncLastPolicy
|
146
146
|
else
|
147
|
-
raise InvalidConfiguration, "synchronization policy #{type} does not exist"
|
147
|
+
raise InvalidConfiguration, "synchronization policy '#{type}' does not exist"
|
148
148
|
end
|
149
149
|
sync_policy = sync_policy.from_config(options)
|
150
150
|
cleanup =
|
@@ -45,7 +45,6 @@ module Snapsync
|
|
45
45
|
str[0..-2].pack("U*")
|
46
46
|
end
|
47
47
|
if mount_points.include?(dir.to_s)
|
48
|
-
binding.pry
|
49
48
|
return uuid, rel
|
50
49
|
end
|
51
50
|
end
|
@@ -71,9 +70,6 @@ module Snapsync
|
|
71
70
|
each_partition_with_filesystem.find do |name, dev|
|
72
71
|
fs = dev['org.freedesktop.UDisks2.Filesystem']
|
73
72
|
mp = fs['MountPoints']
|
74
|
-
if !mp.empty?
|
75
|
-
binding.pry
|
76
|
-
end
|
77
73
|
# .map { |str| Pathname.new(str) }
|
78
74
|
mp.include?(dir)
|
79
75
|
end
|
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.5
|
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-
|
11
|
+
date: 2016-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logging
|