docker-cli 0.2.1 → 0.3.1
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 +4 -0
- data/Gemfile.lock +15 -16
- data/docker-cli.gemspec +6 -6
- data/lib/docker/cli/command_factory.rb +11 -2
- data/lib/docker/cli/version.rb +1 -1
- metadata +30 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bf1358dd074040e1a6e61a5c488a008e955293d222c175da007a8fb927a2d88
|
4
|
+
data.tar.gz: c602d1e39f943dc6b55e528a3add31250427e92a46609bd36cd7f6637254d78d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99a99a70b811c84a6bbda979547f8329d6793a743f8f86bfe66ea36fadf9be5cffe4209f580a5e22d1fc4ed08a23e89586b4e46f981a27bb08a2c055e90372cb
|
7
|
+
data.tar.gz: 98b12320762b14572f805ace40227f364a6016216953f36c20a94b2ae60fea36cb37c6c5401e898ea31141b7ec74e1c130e38e40e8478143652c281106fc2d57
|
data/.release_history.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
docker-cli (0.
|
5
|
-
ptools
|
6
|
-
teLogger
|
7
|
-
toolrack
|
8
|
-
tty-command
|
9
|
-
tty-prompt
|
4
|
+
docker-cli (0.3.1)
|
5
|
+
ptools
|
6
|
+
teLogger
|
7
|
+
toolrack
|
8
|
+
tty-command
|
9
|
+
tty-prompt
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
|
15
|
-
devops_assist (0.3.3)
|
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
|
@@ -25,7 +24,7 @@ GEM
|
|
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
|
@@ -43,13 +42,12 @@ GEM
|
|
43
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
49
|
teLogger (0.2.2)
|
51
|
-
toolrack (0.
|
52
|
-
base58
|
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,13 +63,14 @@ GEM
|
|
65
63
|
wisper (2.0.1)
|
66
64
|
|
67
65
|
PLATFORMS
|
68
|
-
|
66
|
+
ruby
|
67
|
+
x86_64-linux
|
69
68
|
|
70
69
|
DEPENDENCIES
|
71
|
-
devops_assist
|
70
|
+
devops_assist
|
72
71
|
docker-cli!
|
73
72
|
rake (~> 13.0)
|
74
73
|
rspec (~> 3.0)
|
75
74
|
|
76
75
|
BUNDLED WITH
|
77
|
-
2.
|
76
|
+
2.2.28
|
data/docker-cli.gemspec
CHANGED
@@ -30,15 +30,15 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
|
-
spec.add_dependency 'toolrack'
|
34
|
-
spec.add_dependency 'teLogger'
|
33
|
+
spec.add_dependency 'toolrack'
|
34
|
+
spec.add_dependency 'teLogger'
|
35
35
|
|
36
|
-
spec.add_dependency 'ptools'
|
36
|
+
spec.add_dependency 'ptools'
|
37
37
|
|
38
|
-
spec.add_dependency 'tty-command'
|
39
|
-
spec.add_dependency 'tty-prompt'
|
38
|
+
spec.add_dependency 'tty-command'
|
39
|
+
spec.add_dependency 'tty-prompt'
|
40
40
|
|
41
|
-
spec.add_development_dependency 'devops_assist'
|
41
|
+
spec.add_development_dependency 'devops_assist'
|
42
42
|
|
43
43
|
# Uncomment to register a new dependency of your gem
|
44
44
|
# spec.add_dependency "example-gem", "~> 1.0"
|
@@ -79,7 +79,7 @@ module Docker
|
|
79
79
|
cmd << "ps"
|
80
80
|
cmd << "-q"
|
81
81
|
cmd << "-f"
|
82
|
-
cmd << "name
|
82
|
+
cmd << "name=\"#{name}\""
|
83
83
|
|
84
84
|
logger.debug "Find container: #{cmd.join(" ")}"
|
85
85
|
|
@@ -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)
|
@@ -255,6 +260,10 @@ module Docker
|
|
255
260
|
@logger
|
256
261
|
end
|
257
262
|
|
263
|
+
def parse_container_list(out, &block)
|
264
|
+
|
265
|
+
end
|
266
|
+
|
258
267
|
end
|
259
268
|
end
|
260
269
|
end
|
data/lib/docker/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,99 +1,99 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toolrack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: teLogger
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
33
|
+
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ptools
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: tty-command
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0
|
61
|
+
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: tty-prompt
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0
|
75
|
+
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: devops_assist
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
96
|
+
version: '0'
|
97
97
|
description: ''
|
98
98
|
email:
|
99
99
|
- cameronian0@protonmail.com
|
@@ -120,7 +120,7 @@ files:
|
|
120
120
|
homepage: ''
|
121
121
|
licenses: []
|
122
122
|
metadata: {}
|
123
|
-
post_install_message:
|
123
|
+
post_install_message:
|
124
124
|
rdoc_options: []
|
125
125
|
require_paths:
|
126
126
|
- lib
|
@@ -135,8 +135,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
|
-
rubygems_version: 3.4.
|
139
|
-
signing_key:
|
138
|
+
rubygems_version: 3.4.10
|
139
|
+
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: ''
|
142
142
|
test_files: []
|