docker-cli 0.5.0 → 0.5.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: b57e16a6a9617b00bc439513345150ec7d4b7ae191bf5d7ecabae708cbd5c435
4
- data.tar.gz: cf58a1a2c3ce07a9975a7d8aba046f6df537898cc66b7fbc239f5827cf901720
3
+ metadata.gz: df550139c4b786758da9fafa9edfaed8513e3c2dbaa8cac36158fbe2867295da
4
+ data.tar.gz: facc5520660695846137e07f7df389ff628dfce6c06526a6a8598ca0b388339b
5
5
  SHA512:
6
- metadata.gz: 65d150f521c8d676ea965e47588b090e76d2b4bdc8370bbe371cbbbe4aaa488e9d1ddd7265a206a6fb18448d1096454f42302843b74abbacc25a0b43f1c968d2
7
- data.tar.gz: 2a25de8c91618eb8878c20fe051ff11d27cdf2443fc8af581745e56da582c72ede1bede4fe75e3bccdf491edd386bf949acae7f471de7fa619caee3286dd9322
6
+ metadata.gz: 5277e725941ff7d559e6fe4e8bed29c93391e1fa4f85a7bfdd7ba9db2159aa0cae57d34632ca756c1dfe3bbf43c38ee4219de1fe8c31b9dcf32d1a874aa81128
7
+ data.tar.gz: da0cdf7d7601335c7e7b1ae31e4a0dce66c443b9fa710258dffb0a4c4126c12bd336ed72da4d7da87794698cf7479940a775898c6eed25d234b8c7d6b776b2fb
data/.rubocop.yml CHANGED
@@ -1,2 +1,3 @@
1
+
1
2
  AllCops:
2
3
  DisabledByDefault: true
data/Gemfile CHANGED
@@ -9,6 +9,7 @@ gem "rake", "~> 13.0"
9
9
 
10
10
  gem "rspec", "~> 3.0"
11
11
 
12
+ #gem 'toolrack', git: 'toolrack', branch: 'master'
12
13
  #
13
14
  #gem 'git_cli', git: "git_cli", branch: "master"
14
15
  #gem 'git_cli_prompt', git: "git_cli_prompt", branch: 'master'
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docker-cli (0.5.0)
5
- colorize
6
- ptools
7
- teLogger
8
- toolrack (= 0.24.1)
9
- tty-command
10
- tty-prompt
4
+ docker-cli (0.5.2)
5
+ colorize (~> 1.1)
6
+ ptools (~> 1.4.3)
7
+ teLogger (~> 0.2)
8
+ toolrack (~> 0.24.2)
9
+ tty-command (~> 0.10.1)
10
+ tty-prompt (~> 0.23)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
@@ -44,7 +44,7 @@ GEM
44
44
  rspec-support (~> 3.12.0)
45
45
  rspec-support (3.12.1)
46
46
  teLogger (0.2.2)
47
- toolrack (0.24.1)
47
+ toolrack (0.24.2)
48
48
  tty-color (0.6.0)
49
49
  tty-command (0.10.1)
50
50
  pastel (~> 0.8)
@@ -66,7 +66,7 @@ PLATFORMS
66
66
  DEPENDENCIES
67
67
  docker-cli!
68
68
  rake (~> 13.0)
69
- release-gem
69
+ release-gem (~> 0.3.3)
70
70
  rspec (~> 3.0)
71
71
 
72
72
  BUNDLED WITH
data/docker-cli.gemspec CHANGED
@@ -30,14 +30,14 @@ 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', "~> 0.24.2"
34
+ spec.add_dependency 'teLogger', "~> 0.2"
35
35
 
36
- spec.add_dependency 'ptools'
36
+ spec.add_dependency 'ptools', "~> 1.4.3"
37
37
 
38
- spec.add_dependency 'tty-command'
39
- spec.add_dependency 'colorize'
40
- spec.add_dependency 'tty-prompt'
38
+ spec.add_dependency 'tty-command', "~> 0.10.1"
39
+ spec.add_dependency 'colorize', "~> 1.1"
40
+ spec.add_dependency 'tty-prompt', "~> 0.23"
41
41
 
42
42
  #spec.add_development_dependency 'devops_assist'
43
43
 
@@ -46,6 +46,5 @@ Gem::Specification.new do |spec|
46
46
 
47
47
  # For more information and examples about making a new gem, checkout our
48
48
  # guide at: https://bundler.io/guides/creating_gem.html
49
- spec.add_development_dependency 'release-gem'
50
- spec.add_dependency "toolrack", "0.24.1"
49
+ spec.add_development_dependency 'release-gem', "~> 0.3.3"
51
50
  end
@@ -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)
@@ -138,7 +149,8 @@ module Docker
138
149
  cmd << image
139
150
 
140
151
  if not_empty?(opts[:command])
141
- cmd << "\"#{opts[:command]}\""
152
+ #cmd << "\"#{opts[:command]}\""
153
+ cmd << opts[:command]
142
154
  end
143
155
 
144
156
  interactive = false
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Docker
4
4
  module Cli
5
- VERSION = "0.5.0"
5
+ VERSION = "0.5.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,113 +1,113 @@
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.2
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-12-24 00:00:00.000000000 Z
11
+ date: 2024-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: teLogger
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.24.2
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.24.2
27
27
  - !ruby/object:Gem::Dependency
28
- name: ptools
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.2'
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.2'
41
41
  - !ruby/object:Gem::Dependency
42
- name: tty-command
42
+ name: ptools
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 1.4.3
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: '0'
54
+ version: 1.4.3
55
55
  - !ruby/object:Gem::Dependency
56
- name: colorize
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.10.1
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.10.1
69
69
  - !ruby/object:Gem::Dependency
70
- name: tty-prompt
70
+ name: colorize
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '1.1'
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: '1.1'
83
83
  - !ruby/object:Gem::Dependency
84
- name: release-gem
84
+ name: tty-prompt
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
89
+ version: '0.23'
90
+ type: :runtime
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.23'
97
97
  - !ruby/object:Gem::Dependency
98
- name: toolrack
98
+ name: release-gem
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '='
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.24.1
104
- type: :runtime
103
+ version: 0.3.3
104
+ type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '='
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.24.1
110
+ version: 0.3.3
111
111
  description: ''
112
112
  email:
113
113
  - cameronian0@protonmail.com
@@ -159,7 +159,7 @@ files:
159
159
  homepage: ''
160
160
  licenses: []
161
161
  metadata: {}
162
- post_install_message:
162
+ post_install_message:
163
163
  rdoc_options: []
164
164
  require_paths:
165
165
  - lib
@@ -174,8 +174,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  requirements: []
177
- rubygems_version: 3.5.1
178
- signing_key:
177
+ rubygems_version: 3.5.3
178
+ signing_key:
179
179
  specification_version: 4
180
180
  summary: ''
181
181
  test_files: []