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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b57e16a6a9617b00bc439513345150ec7d4b7ae191bf5d7ecabae708cbd5c435
4
- data.tar.gz: cf58a1a2c3ce07a9975a7d8aba046f6df537898cc66b7fbc239f5827cf901720
3
+ metadata.gz: 7de8845afde832587cc19c8266177a0a909805a28ac6f26fd3663a9b328d6f92
4
+ data.tar.gz: 06b86993c73cfafb99ddc8dd9c00cc73d8bad24e636882362e3e3231652a8f41
5
5
  SHA512:
6
- metadata.gz: 65d150f521c8d676ea965e47588b090e76d2b4bdc8370bbe371cbbbe4aaa488e9d1ddd7265a206a6fb18448d1096454f42302843b74abbacc25a0b43f1c968d2
7
- data.tar.gz: 2a25de8c91618eb8878c20fe051ff11d27cdf2443fc8af581745e56da582c72ede1bede4fe75e3bccdf491edd386bf949acae7f471de7fa619caee3286dd9322
6
+ metadata.gz: a49c960fc1462a972a3ebe1f3f502a430ecd389f2b7f00c9af9781959e22c0df7dadce23b3dbd069caa78c91c62d483eba6ed28000f1b279c81f0bd659cdaada
7
+ data.tar.gz: c6816d24a2efd38599aaaacc96d2aa7158fbf4315108aa1996c9b12ca875c7bec8c911eea7f54ba8e272a4249048444a462c87920d961631d61aae07d18d147d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docker-cli (0.5.0)
4
+ docker-cli (0.5.1)
5
5
  colorize
6
6
  ptools
7
7
  teLogger
@@ -82,7 +82,12 @@ module Docker
82
82
  cmd << "ps"
83
83
  cmd << "-q"
84
84
  cmd << "-f"
85
- cmd << "name=\"#{name}\""
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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Docker
4
4
  module Cli
5
- VERSION = "0.5.0"
5
+ VERSION = "0.5.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian