docker-sync 0.5.11 → 0.5.13
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/sync_strategy/unison.rb +1 -1
- data/lib/docker-sync/upgrade_check.rb +8 -0
- data/tasks/sync/sync.thor +9 -2
- 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: 04a9a15570d1faf97af25c0dfa37241a3374c8e0
|
4
|
+
data.tar.gz: 92fc94323ba31dc7cd0e6935d51ecef7d470d58f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cba7ebc5e2c0b3214ee0e4456ad5b9ca6ba30cf327aa614983cc437dd6b7e692260e3cd1154c6f27fd6dc2fe22e0581474595cbee4fac118dc2351e4cbe316d7
|
7
|
+
data.tar.gz: 26ab2e2b6d6cc95c9334991446848d869b12356edc67f6a530d3fc8af1bda6eae0f3fc105098eec1fdf43e314dcfbc46c694f9dc9399ed92cb77c9584ab35f83
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.13
|
@@ -63,6 +63,14 @@ class UpgradeChecker
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
+
if Gem::Version.new(last_upgraded_version) < Gem::Version.new('0.5.12')
|
67
|
+
Thor::Shell::Basic.new.say_status 'warning', "0.5.12 uses a newer OCALM 4.08.1 version in the Unison image. If you use the unison strategy, please upgrade your local unison to be compiled against OCALM 4.08.1", :red
|
68
|
+
|
69
|
+
unless Thor::Shell::Basic.new.yes?('Sync will fail otherwise. Continue? (y/N)')
|
70
|
+
exit 1
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
66
74
|
# update the upgrade_status
|
67
75
|
@config.update! 'upgrade_status' => "#{UpgradeChecker.get_current_version}"
|
68
76
|
end
|
data/tasks/sync/sync.thor
CHANGED
@@ -155,8 +155,15 @@ class Sync < Thor
|
|
155
155
|
|
156
156
|
# Check to see if we're already running:
|
157
157
|
if daemon_running?
|
158
|
-
|
159
|
-
|
158
|
+
should_exit = true
|
159
|
+
unless options[:sync_name].empty?
|
160
|
+
running = `docker ps --filter 'status=running' --filter 'name=#{options[:sync_name]}' --format "{{.Names}}" | grep '^#{options[:sync_name]}$'`
|
161
|
+
should_exit = false if running == ''
|
162
|
+
end
|
163
|
+
if should_exit
|
164
|
+
say_status 'ok:', 'docker-sync already started for this configuration', :white
|
165
|
+
exit 0
|
166
|
+
end
|
160
167
|
end
|
161
168
|
|
162
169
|
# If we're daemonizing, run a sync first to ensure the containers exist so that a docker-compose up won't fail:
|
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.13
|
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-02
|
11
|
+
date: 2019-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|