docker-sync 0.5.13 → 0.5.14
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/update_check.rb +7 -3
- data/tasks/sync/sync.thor +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: f87dc91e044d3b2e317da4134a5ebcb563b55fb1
|
4
|
+
data.tar.gz: 7b5a54ced8ae41c1529eade86499418f0efcce88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2b94fc6d7c110aba5bcb80e76d22da763e32469e6c99dbf4a116e1aa53f1fb7d79c491b4dbba9e7547db2d445e1d25de80966910e0902d0dae5715d44f29af8
|
7
|
+
data.tar.gz: 5f88a700c1da699eb6763f69a7c8a2b3e078c868b26bd483c62c907fdf36ee87625d933d3002276f3d39d46b68dfd0d4982553754211a9d6dc487c78a6353dcb
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.14
|
@@ -92,9 +92,13 @@ class UpdateChecker
|
|
92
92
|
if check.update_available
|
93
93
|
say_status 'warning',"There is an update (#{check.latest_version}) available (current version #{check.current_version}). Please update before you continue",:yellow
|
94
94
|
if yes?("Shall I update docker-sync to #{check.latest_version} for you?")
|
95
|
-
system('gem update docker-sync')
|
96
|
-
|
97
|
-
|
95
|
+
if system('gem update docker-sync')
|
96
|
+
say_status 'success','Successfully updated, please restart docker-sync and check the changelog at https://github.com/EugenMayer/docker-sync/wiki/5.-Changelog',:green
|
97
|
+
exit 0
|
98
|
+
else
|
99
|
+
say_status 'error','Unable to update docker-sync',:red
|
100
|
+
exit 1
|
101
|
+
end
|
98
102
|
else
|
99
103
|
exit 1 if update_enforced
|
100
104
|
end
|
data/tasks/sync/sync.thor
CHANGED
@@ -156,7 +156,7 @@ class Sync < Thor
|
|
156
156
|
# Check to see if we're already running:
|
157
157
|
if daemon_running?
|
158
158
|
should_exit = true
|
159
|
-
unless options[:sync_name].empty?
|
159
|
+
unless options[:sync_name].nil? || options[:sync_name].empty?
|
160
160
|
running = `docker ps --filter 'status=running' --filter 'name=#{options[:sync_name]}' --format "{{.Names}}" | grep '^#{options[:sync_name]}$'`
|
161
161
|
should_exit = false if running == ''
|
162
162
|
end
|
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.5.
|
4
|
+
version: 0.5.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugen Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|