docker-sync 1.0.1 → 1.0.3
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b49e15af33c0e45ecd3a780c8772ed3ee051079d24e89eef28bd3f14d5f006be
|
4
|
+
data.tar.gz: 0ad485de1c4dc1aa3614f8e0302cb9a898ef9edb5f420c529edb8f19cec006df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08deb9e92e76aef664e05485708c6232de8466f5fdd927e1ca87e6494f508bb848dcbefce07cfe8189036e489a931907b9fecdff8d168070d205cad556b4e74a'
|
7
|
+
data.tar.gz: 6c7e94c4a8087581ef173d2e7067e479bcf6408f769de45f43a05e64354780e0443c489e1ed38fa203227a4024345cc4acd4497140ce69f0fe7e82998a80af02
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
@@ -182,8 +182,16 @@ module DockerSync
|
|
182
182
|
exclude_type = @options['sync_excludes_type']
|
183
183
|
end
|
184
184
|
|
185
|
+
# use the 'Name' exclude type for all default ignores
|
186
|
+
# to prevent conflicts with the sync_excludes_type settings
|
187
|
+
unless Environment.default_ignores.nil?
|
188
|
+
expanded_ignore_strings = Environment.default_ignores.map do |pattern|
|
189
|
+
"-ignore='Name #{pattern}'"
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
185
193
|
unless @options['sync_excludes'].nil?
|
186
|
-
expanded_ignore_strings = @options['sync_excludes'].
|
194
|
+
expanded_ignore_strings = @options['sync_excludes'].map do |pattern|
|
187
195
|
if exclude_type == 'none'
|
188
196
|
# the ignore type like Name / Path are part of the pattern
|
189
197
|
ignore_string = "#{pattern}"
|
@@ -61,10 +61,9 @@ module DockerSync
|
|
61
61
|
|
62
62
|
def sync_options
|
63
63
|
args = []
|
64
|
-
excludes_list = @options['sync_excludes'].append(Environment.default_ignores).flatten!
|
65
64
|
|
66
|
-
unless
|
67
|
-
args = excludes_list.map { |pattern| "--exclude='#{pattern}'" } + args
|
65
|
+
unless @options['sync_excludes'].nil?
|
66
|
+
args = excludes_list.append(Environment.default_ignores).flatten!.map { |pattern| "--exclude='#{pattern}'" } + args
|
68
67
|
end
|
69
68
|
args.push('-ap')
|
70
69
|
args.push(@options['sync_args']) if @options.key?('sync_args')
|
@@ -101,8 +101,16 @@ module DockerSync
|
|
101
101
|
exclude_type = 'Name'
|
102
102
|
exclude_type = @options['sync_excludes_type'] unless @options['sync_excludes_type'].nil?
|
103
103
|
|
104
|
+
# use the 'Name' exclude type for all default ignores
|
105
|
+
# to prevent conflicts with the sync_excludes_type settings
|
106
|
+
unless Environment.default_ignores.nil?
|
107
|
+
expanded_ignore_strings = Environment.default_ignores.map do |pattern|
|
108
|
+
"-ignore='Name #{pattern}'"
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
104
112
|
unless @options['sync_excludes'].nil?
|
105
|
-
expanded_ignore_strings = @options['sync_excludes'].
|
113
|
+
expanded_ignore_strings = @options['sync_excludes'].map do |pattern|
|
106
114
|
ignore_string = if exclude_type == 'none'
|
107
115
|
# the ignore type like Name / Path are part of the pattern
|
108
116
|
pattern.to_s
|
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: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugen Mayer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-09-
|
11
|
+
date: 2022-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|