docker-sync 0.5.13 → 0.5.14

This diff has not been reviewed by any users.
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04a9a15570d1faf97af25c0dfa37241a3374c8e0
4
- data.tar.gz: 92fc94323ba31dc7cd0e6935d51ecef7d470d58f
3
+ metadata.gz: f87dc91e044d3b2e317da4134a5ebcb563b55fb1
4
+ data.tar.gz: 7b5a54ced8ae41c1529eade86499418f0efcce88
5
5
  SHA512:
6
- metadata.gz: cba7ebc5e2c0b3214ee0e4456ad5b9ca6ba30cf327aa614983cc437dd6b7e692260e3cd1154c6f27fd6dc2fe22e0581474595cbee4fac118dc2351e4cbe316d7
7
- data.tar.gz: 26ab2e2b6d6cc95c9334991446848d869b12356edc67f6a530d3fc8af1bda6eae0f3fc105098eec1fdf43e314dcfbc46c694f9dc9399ed92cb77c9584ab35f83
6
+ metadata.gz: d2b94fc6d7c110aba5bcb80e76d22da763e32469e6c99dbf4a116e1aa53f1fb7d79c491b4dbba9e7547db2d445e1d25de80966910e0902d0dae5715d44f29af8
7
+ data.tar.gz: 5f88a700c1da699eb6763f69a7c8a2b3e078c868b26bd483c62c907fdf36ee87625d933d3002276f3d39d46b68dfd0d4982553754211a9d6dc487c78a6353dcb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.13
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
- 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
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
@@ -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.13
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-02 00:00:00.000000000 Z
11
+ date: 2019-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor