docker-cli 0.1.1 → 0.1.2

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: 772cf53882bfb45cf43be6d235ecca8ed718bbc8967cb9552b52fcdcc39ec4b7
4
- data.tar.gz: 6ab201e6b5b70d5d3b07e0b06d9b007139c98b4a65c0a31b5cd8f47f1f774c8d
3
+ metadata.gz: 273888f0efbab78c681cbba082b6bf402b8c546abf8a732d71827f238bfa51df
4
+ data.tar.gz: cc1cd3009140b977b4ffd7bbfa74920542ae2217f5d50b18eb5519310b06a9ea
5
5
  SHA512:
6
- metadata.gz: 3287974fed58b9d9ddc311f3ace54cc28ceb427ad9a9049efc8936374afec8866bbd393d1e61590c5ad7930873c0885e73042fd8f9d63f5ee122624f9fc293a4
7
- data.tar.gz: e7a40193271218b1bf5100acd1a1c606d30c5d327163f74c97aed420b7f82061b91b6af00ab669efeb723a6c766ee2463b1fd0156ca44d76d5509c1815f092d9
6
+ metadata.gz: e0a459e9c1fa225a93f53f957c558d537e2e3a1558f88cb04b95e1a723bf726e2cc3745fe27e6210a64179883624ab6ec5984ed55f55bd9b7ce9a69ee6832343
7
+ data.tar.gz: f37f25934d5584d271cbc6d529aab26a42d869c0911d670b7736aa8f144acecbd82cd6c548f3ec3de229c60c15e06eb9984d29c2f311a8f21a98b029931b4422
data/.release_history.yml CHANGED
@@ -2,3 +2,5 @@
2
2
  docker-cli:
3
3
  - :version: 0.1.0
4
4
  :timestamp: 1670315972.6015687
5
+ - :version: 0.1.1
6
+ :timestamp: 1670648500.3751137
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docker-cli (0.1.0)
4
+ docker-cli (0.1.2)
5
5
  ptools
6
6
  teLogger
7
7
  toolrack
@@ -11,25 +11,24 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- base58 (0.2.3)
15
- devops_assist (0.3.1)
14
+ devops_assist (0.3.11)
16
15
  git_cli
17
- git_cli_prompt
16
+ git_cli_prompt (~> 0.3.3)
18
17
  gvcs
19
18
  teLogger
20
19
  toolrack
21
20
  tty-prompt
22
21
  diff-lcs (1.5.0)
23
- git_cli (0.10.0)
22
+ git_cli (0.11.2)
24
23
  gvcs
25
24
  ptools (~> 1.4.0)
26
25
  teLogger
27
26
  toolrack
28
- git_cli_prompt (0.3.1)
27
+ git_cli_prompt (0.3.4)
29
28
  teLogger
30
29
  toolrack
31
30
  tty-prompt
32
- gvcs (0.1.0)
31
+ gvcs (0.1.1)
33
32
  pastel (0.8.0)
34
33
  tty-color (~> 0.5)
35
34
  ptools (1.4.3)
@@ -38,18 +37,17 @@ GEM
38
37
  rspec-core (~> 3.12.0)
39
38
  rspec-expectations (~> 3.12.0)
40
39
  rspec-mocks (~> 3.12.0)
41
- rspec-core (3.12.0)
40
+ rspec-core (3.12.1)
42
41
  rspec-support (~> 3.12.0)
43
- rspec-expectations (3.12.0)
42
+ rspec-expectations (3.12.2)
44
43
  diff-lcs (>= 1.2.0, < 2.0)
45
44
  rspec-support (~> 3.12.0)
46
- rspec-mocks (3.12.0)
45
+ rspec-mocks (3.12.5)
47
46
  diff-lcs (>= 1.2.0, < 2.0)
48
47
  rspec-support (~> 3.12.0)
49
48
  rspec-support (3.12.0)
50
- teLogger (0.2.0)
51
- toolrack (0.19.1)
52
- base58
49
+ teLogger (0.2.2)
50
+ toolrack (0.21.0)
53
51
  tty-color (0.6.0)
54
52
  tty-command (0.10.1)
55
53
  pastel (~> 0.8)
@@ -65,6 +63,7 @@ GEM
65
63
  wisper (2.0.1)
66
64
 
67
65
  PLATFORMS
66
+ ruby
68
67
  x86_64-linux
69
68
 
70
69
  DEPENDENCIES
@@ -93,9 +93,14 @@ module Docker
93
93
  cmd = []
94
94
  cmd << Cli.docker_exe
95
95
  cmd << "ps"
96
+ # return all info instead of only the container ID
97
+ #cmd << "-a"
96
98
  cmd << "-aq"
97
99
  cmd << "-f"
98
- cmd << "name=#{name}"
100
+ # From little testing seems the command by default already support regex formatting
101
+ # So can use the regex marker to get exact match
102
+ # e.g. if want exact match, pass in ^#{name}\z
103
+ cmd << "name=\"#{name}\""
99
104
 
100
105
  logger.debug "Find from all container: #{cmd.join(" ")}"
101
106
  Command.new(cmd)
@@ -192,15 +197,13 @@ module Docker
192
197
 
193
198
  isTty = false
194
199
  isInteractive = false
195
- if is_empty?(opts[:command])
196
- if not_empty?(opts[:tty]) and opts[:tty] == true
197
- cmd << "-t"
198
- isTty = true
199
- end
200
- if not_empty?(opts[:interactive]) and opts[:interactive] == true
201
- cmd << "-i"
202
- isInteractive = true
203
- end
200
+ if not_empty?(opts[:tty]) and opts[:tty] == true
201
+ cmd << "-t"
202
+ isTty = true
203
+ end
204
+ if not_empty?(opts[:interactive]) and opts[:interactive] == true
205
+ cmd << "-i"
206
+ isInteractive = true
204
207
  end
205
208
 
206
209
  cmd << container
@@ -257,6 +260,10 @@ module Docker
257
260
  @logger
258
261
  end
259
262
 
263
+ def parse_container_list(out, &block)
264
+
265
+ end
266
+
260
267
  end
261
268
  end
262
269
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Docker
4
4
  module Cli
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-10 00:00:00.000000000 Z
11
+ date: 2023-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toolrack
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  - !ruby/object:Gem::Version
135
135
  version: '0'
136
136
  requirements: []
137
- rubygems_version: 3.2.22
137
+ rubygems_version: 3.4.10
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: ''