docker-sync 0.2.0.rc1 → 0.2.0
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 +4 -4
- data/VERSION +1 -1
- data/lib/docker-sync/sync_manager.rb +6 -6
- data/lib/docker-sync/sync_strategy/rsync.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 663dc1ebdf1337d31366115930e6b1cef1c341e8
|
|
4
|
+
data.tar.gz: 603862a7b3dcbe9b34c5f1d59fafc9b55173802b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9dc34c1f10e8f4c42dfd5e54d84eee04ae913d5ec5c8630f7609762e79b14adf7463ff626f9973e24f29f877a8247709048488768927a9a5ee038958773f887
|
|
7
|
+
data.tar.gz: b9b3e09576d94707ee2e77ce8b5125c0e76d55f2be3a506f54669860b7714e4495aee005b1d51860f0106c1ed03f6ee9daeb53fdfddfc9d8b0d4813ce2a0e510
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.0
|
|
1
|
+
0.2.0
|
|
@@ -50,13 +50,13 @@ module Docker_sync
|
|
|
50
50
|
@config_syncs.each do |name, config|
|
|
51
51
|
@config_syncs[name]['config_path'] = @config_path
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
# [nbr] convert the sync src from relative to absolute path
|
|
54
|
+
# preserve '/' as it may be significant to the sync cmd
|
|
55
|
+
absolute_path = File.expand_path(@config_syncs[name]['src'])
|
|
56
|
+
absolute_path << "/" if @config_syncs[name]['src'].end_with?("/")
|
|
57
|
+
@config_syncs[name]['src'] = absolute_path
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
@config_syncs[name]['cli_mode'] = @config_global['cli_mode'] || 'auto'
|
|
60
60
|
|
|
61
61
|
# set the global verbose setting, if the sync-endpoint does not define a own one
|
|
62
62
|
unless config.key?('verbose')
|
|
@@ -109,7 +109,7 @@ module Docker_Sync
|
|
|
109
109
|
end
|
|
110
110
|
say_status 'ok', "#{container_name}: starting initial sync of #{@options['src']}", :white if @options['verbose']
|
|
111
111
|
# this sleep is needed since the container could be not started
|
|
112
|
-
sleep
|
|
112
|
+
sleep 3
|
|
113
113
|
sync
|
|
114
114
|
say_status 'success', 'Rsync server started', :green
|
|
115
115
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: docker-sync
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.0
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eugen Mayer
|
|
@@ -171,9 +171,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
171
171
|
version: '2.0'
|
|
172
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
requirements:
|
|
174
|
-
- - "
|
|
174
|
+
- - ">="
|
|
175
175
|
- !ruby/object:Gem::Version
|
|
176
|
-
version:
|
|
176
|
+
version: '0'
|
|
177
177
|
requirements: []
|
|
178
178
|
rubyforge_project:
|
|
179
179
|
rubygems_version: 2.4.5.1
|