docker-cli 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/docker/cli/command_factory.rb +13 -2
- data/lib/docker/cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7de8845afde832587cc19c8266177a0a909805a28ac6f26fd3663a9b328d6f92
|
4
|
+
data.tar.gz: 06b86993c73cfafb99ddc8dd9c00cc73d8bad24e636882362e3e3231652a8f41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a49c960fc1462a972a3ebe1f3f502a430ecd389f2b7f00c9af9781959e22c0df7dadce23b3dbd069caa78c91c62d483eba6ed28000f1b279c81f0bd659cdaada
|
7
|
+
data.tar.gz: c6816d24a2efd38599aaaacc96d2aa7158fbf4315108aa1996c9b12ca875c7bec8c911eea7f54ba8e272a4249048444a462c87920d961631d61aae07d18d147d
|
data/Gemfile.lock
CHANGED
@@ -82,7 +82,12 @@ module Docker
|
|
82
82
|
cmd << "ps"
|
83
83
|
cmd << "-q"
|
84
84
|
cmd << "-f"
|
85
|
-
|
85
|
+
|
86
|
+
if opts[:exact_name] == true
|
87
|
+
cmd << "name=\"^/#{name}$\""
|
88
|
+
else
|
89
|
+
cmd << "name=\"#{name}\""
|
90
|
+
end
|
86
91
|
|
87
92
|
logger.debug "Find container: #{cmd.join(" ")}"
|
88
93
|
|
@@ -103,7 +108,13 @@ module Docker
|
|
103
108
|
# From little testing seems the command by default already support regex formatting
|
104
109
|
# So can use the regex marker to get exact match
|
105
110
|
# e.g. if want exact match, pass in ^#{name}\z
|
106
|
-
cmd << "name=\"#{name}\""
|
111
|
+
#cmd << "name=\"#{name}\""
|
112
|
+
|
113
|
+
if opts[:exact_name] == true
|
114
|
+
cmd << "name=\"^/#{name}$\""
|
115
|
+
else
|
116
|
+
cmd << "name=\"#{name}\""
|
117
|
+
end
|
107
118
|
|
108
119
|
logger.debug "Find from all container: #{cmd.join(" ")}"
|
109
120
|
Command.new(cmd)
|
data/lib/docker/cli/version.rb
CHANGED