docker-sync 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/docker-sync/dependencies/unox.rb +2 -2
- data/lib/docker-sync/sync_strategy/rsync.rb +7 -3
- data/lib/docker-sync/sync_strategy/unison.rb +10 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d08392b2115f84c6dd7d37cb28232b4193523d4bb8e45860a9be061cefd88fb5
|
4
|
+
data.tar.gz: 18626e0ea9919d701dee2787d32457314bbe4abee642ce26ce23c3a02b5e5145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf0b3f26f0eb4f2d99b95336e13669e4abef9db285b240011660d5d19bd89485b4940f523adbd1d8bbb6b412af3e251a8e21c4e4d9cd40b43676a897452bcdc5
|
7
|
+
data.tar.gz: dbc9ec63c1b187f181e9bf180507cb724a7e54010dc145e80a882f020eab19051400496f72e0b8c5cd078fa8130bd29fce74ab6a188d6162d012dfb70a6e3823
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
@@ -14,7 +14,7 @@ module DockerSync
|
|
14
14
|
|
15
15
|
def self.available?
|
16
16
|
# should never have been called anyway - fix the call that it should check for the OS
|
17
|
-
raise 'Unox cannot be available for other
|
17
|
+
raise 'Unox cannot be available for platforms other than MacOS' unless Environment.mac?
|
18
18
|
|
19
19
|
return true if brew_package_installed?('unox')
|
20
20
|
return false unless brew_package_installed?('unison-fsmonitor')
|
@@ -26,7 +26,7 @@ module DockerSync
|
|
26
26
|
|
27
27
|
def self.ensure!
|
28
28
|
return if available?
|
29
|
-
raise 'Unox cannot be installed on other
|
29
|
+
raise 'Unox cannot be installed on platforms other than MacOS' unless Environment.mac?
|
30
30
|
|
31
31
|
cleanup_non_brew_version!
|
32
32
|
PackageManager.install_package('eugenmayer/dockersync/unox')
|
@@ -42,12 +42,16 @@ module DockerSync
|
|
42
42
|
|
43
43
|
out = `#{cmd}`
|
44
44
|
if $?.exitstatus > 0
|
45
|
-
|
45
|
+
error_msg = "Error starting sync, exit code #{$?.exitstatus}"
|
46
|
+
say_status 'error', error_msg, :red
|
46
47
|
say_status 'message', out
|
47
|
-
else
|
48
48
|
TerminalNotifier.notify(
|
49
|
-
"
|
49
|
+
"#{error_msg}", :title => @sync_name, :subtitle => @options['src'], group: 'docker-sync'
|
50
50
|
) if @options['notify_terminal']
|
51
|
+
else
|
52
|
+
TerminalNotifier.notify(
|
53
|
+
"Synced #{@options['src']}", :title => @sync_name, group: 'docker-sync'
|
54
|
+
) if @options['notify_terminal'] && @options['notify_terminal'] != 'errors_only'
|
51
55
|
say_status 'ok', "Synced #{@options['src']}", :white
|
52
56
|
if @options['verbose']
|
53
57
|
say_status 'output', out
|
@@ -78,13 +78,20 @@ module DockerSync
|
|
78
78
|
|
79
79
|
stdout, stderr, exit_status = Open3.capture3(cmd)
|
80
80
|
if !exit_status.success?
|
81
|
-
|
81
|
+
error_msg = "Error starting sync, exit code #{$?.exitstatus}"
|
82
|
+
say_status 'error', error_msg, :red
|
82
83
|
say_status 'message', stdout
|
83
84
|
say_status 'message', stderr
|
84
|
-
|
85
|
+
|
85
86
|
if @options['notify_terminal']
|
86
87
|
TerminalNotifier.notify(
|
87
|
-
"
|
88
|
+
"#{error_msg}", :title => @sync_name, :subtitle => @options['src'], group: 'docker-sync'
|
89
|
+
)
|
90
|
+
end
|
91
|
+
else
|
92
|
+
if @options['notify_terminal'] && @options['notify_terminal'] != 'errors_only'
|
93
|
+
TerminalNotifier.notify(
|
94
|
+
"Synced #{@options['src']}", title: @sync_name, group: 'docker-sync'
|
88
95
|
)
|
89
96
|
end
|
90
97
|
say_status 'ok', "Synced #{@options['src']}", :white
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugen Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|