docker-cli 0.2.1 → 0.3.0

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: 70e675b039f436ae267c09f5ff766d6c6fe80781b3502f01c1684614c994735e
4
- data.tar.gz: 1e01b0315a9507886da689d63f6f061b4e0455f650b210d4cdce603c8086c036
3
+ metadata.gz: a7205a4fd4da05244963a59b557b73f7390c33e6eccf7d8ceb151212aa55d341
4
+ data.tar.gz: 2dc373bbff72ffe31ad1f6e06b93acb5c89895d2f73cc72512b840ac6011f04a
5
5
  SHA512:
6
- metadata.gz: 617a1e09957069d7d53876c179f30b22c91efa792d28bec7306913832db9a7369318076ded4328e36c5095437f3984b008bffde276b22a2789110514340e4215
7
- data.tar.gz: 36be5d9e521662e5da112e495004290935ab2883d62ca7a8dfd8cffc8be3dc269148df1697c935d0d8e70b7f7b879f2b23c6c2d0176678bc170936bcc05acabc
6
+ metadata.gz: fdfe1f3ef79d0fc43cf62edde5ed4a25005b6f4c3a55d8c4386162699a23334b513d8c31f4b6ca94fa06f915a0c620e0f0d871026ef27be30fce4f1b5036ca80
7
+ data.tar.gz: ffc7eb6b0865efa24cf32cecfb7ae5804c691982d7e35ad63749ff7e13b07e9f5b391e8893d7da17eac0df2e3019dea952595a64bc33138f8cc8ab9e7e07597e
data/.release_history.yml CHANGED
@@ -6,3 +6,5 @@ docker-cli:
6
6
  :timestamp: 1670648500.3751137
7
7
  - :version: 0.2.0
8
8
  :timestamp: 1679547303.774784
9
+ - :version: 0.2.1
10
+ :timestamp: 1679551516.275535
data/Gemfile.lock CHANGED
@@ -1,20 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docker-cli (0.2.1)
5
- ptools (~> 1.4.3)
6
- teLogger (~> 0.2.2)
7
- toolrack (~> 0.20.1)
8
- tty-command (~> 0.10.1)
9
- tty-prompt (~> 0.23.1)
4
+ docker-cli (0.3.0)
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
- base58 (0.2.3)
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.1)
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.4)
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.20.1)
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
- x86_64-darwin-21
66
+ ruby
67
+ x86_64-linux
69
68
 
70
69
  DEPENDENCIES
71
- devops_assist (~> 0.3.3)
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.4.6
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', "~> 0.20.1"
34
- spec.add_dependency 'teLogger', "~> 0.2.2"
33
+ spec.add_dependency 'toolrack'
34
+ spec.add_dependency 'teLogger'
35
35
 
36
- spec.add_dependency 'ptools', "~> 1.4.3"
36
+ spec.add_dependency 'ptools'
37
37
 
38
- spec.add_dependency 'tty-command', "~> 0.10.1"
39
- spec.add_dependency 'tty-prompt', "~> 0.23.1"
38
+ spec.add_dependency 'tty-command'
39
+ spec.add_dependency 'tty-prompt'
40
40
 
41
- spec.add_development_dependency 'devops_assist', "~> 0.3.3"
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"
@@ -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)
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Docker
4
4
  module Cli
5
- VERSION = "0.2.1"
5
+ VERSION = "0.3.0"
6
6
  end
7
7
  end
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.2.1
4
+ version: 0.3.0
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-03-23 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
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.20.1
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.20.1
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.2.2
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.2.2
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: 1.4.3
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: 1.4.3
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.10.1
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.10.1
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.23.1
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.23.1
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.3.3
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.3.3
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.6
139
- signing_key:
138
+ rubygems_version: 3.4.10
139
+ signing_key:
140
140
  specification_version: 4
141
141
  summary: ''
142
142
  test_files: []