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 +4 -4
- data/.release_history.yml +2 -0
- data/Gemfile.lock +12 -13
- data/lib/docker/cli/command_factory.rb +17 -10
- data/lib/docker/cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 273888f0efbab78c681cbba082b6bf402b8c546abf8a732d71827f238bfa51df
|
4
|
+
data.tar.gz: cc1cd3009140b977b4ffd7bbfa74920542ae2217f5d50b18eb5519310b06a9ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0a459e9c1fa225a93f53f957c558d537e2e3a1558f88cb04b95e1a723bf726e2cc3745fe27e6210a64179883624ab6ec5984ed55f55bd9b7ce9a69ee6832343
|
7
|
+
data.tar.gz: f37f25934d5584d271cbc6d529aab26a42d869c0911d670b7736aa8f144acecbd82cd6c548f3ec3de229c60c15e06eb9984d29c2f311a8f21a98b029931b4422
|
data/.release_history.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
docker-cli (0.1.
|
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
|
-
|
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.
|
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.
|
27
|
+
git_cli_prompt (0.3.4)
|
29
28
|
teLogger
|
30
29
|
toolrack
|
31
30
|
tty-prompt
|
32
|
-
gvcs (0.1.
|
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.
|
40
|
+
rspec-core (3.12.1)
|
42
41
|
rspec-support (~> 3.12.0)
|
43
|
-
rspec-expectations (3.12.
|
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.
|
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.
|
51
|
-
toolrack (0.
|
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
|
-
|
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
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
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
|
data/lib/docker/cli/version.rb
CHANGED
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.
|
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:
|
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.
|
137
|
+
rubygems_version: 3.4.10
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: ''
|