docker-sync 0.5.11 → 0.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89e36cdd4a606f5db9bedea29fa21a0224586927
4
- data.tar.gz: 4e8bc82c2b0578b0aa8cd477a8dc6db4dd6b9415
3
+ metadata.gz: 04a9a15570d1faf97af25c0dfa37241a3374c8e0
4
+ data.tar.gz: 92fc94323ba31dc7cd0e6935d51ecef7d470d58f
5
5
  SHA512:
6
- metadata.gz: 0a14fd9fef116acf44ac60540be952a4a7e8209fcd04b71785b911768f952023bdddcaa916f071fe0a1f182eca24d1f3ee0df7e93914b4185fce5b2bbc66552a
7
- data.tar.gz: c67482b7187dd070b77e5e183812e5a08f6e23ea7cb929b50c6c1907c985be06edb6717829941a62f504fb47bd0c7fe411e8043e4601fc20f21e79d400c8aedc
6
+ metadata.gz: cba7ebc5e2c0b3214ee0e4456ad5b9ca6ba30cf327aa614983cc437dd6b7e692260e3cd1154c6f27fd6dc2fe22e0581474595cbee4fac118dc2351e4cbe316d7
7
+ data.tar.gz: 26ab2e2b6d6cc95c9334991446848d869b12356edc67f6a530d3fc8af1bda6eae0f3fc105098eec1fdf43e314dcfbc46c694f9dc9399ed92cb77c9584ab35f83
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.11
1
+ 0.5.13
@@ -22,7 +22,7 @@ module DockerSync
22
22
  if @options.key?('image')
23
23
  @docker_image = @options['image']
24
24
  else
25
- @docker_image = 'eugenmayer/unison:2.51.2.1'
25
+ @docker_image = 'eugenmayer/unison:2.51.2.2'
26
26
  end
27
27
  begin
28
28
  Dependencies::Unison.ensure!
@@ -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
@@ -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
- say_status 'ok:', 'docker-sync already started for this configuration', :white
159
- exit 0
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.11
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-10 00:00:00.000000000 Z
11
+ date: 2019-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor