docker-cli 0.5.1 → 0.5.3

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: 7de8845afde832587cc19c8266177a0a909805a28ac6f26fd3663a9b328d6f92
4
- data.tar.gz: 06b86993c73cfafb99ddc8dd9c00cc73d8bad24e636882362e3e3231652a8f41
3
+ metadata.gz: b234371c64bfb6a69ca9cf2a4a43541a67f58c8b6ce54fb5faea454e0d4e6304
4
+ data.tar.gz: efa05c9e71c1453bf9158231ceb1a8d787002db490f35f5f5870e6c7811aea17
5
5
  SHA512:
6
- metadata.gz: a49c960fc1462a972a3ebe1f3f502a430ecd389f2b7f00c9af9781959e22c0df7dadce23b3dbd069caa78c91c62d483eba6ed28000f1b279c81f0bd659cdaada
7
- data.tar.gz: c6816d24a2efd38599aaaacc96d2aa7158fbf4315108aa1996c9b12ca875c7bec8c911eea7f54ba8e272a4249048444a462c87920d961631d61aae07d18d147d
6
+ metadata.gz: d968c60f3d495a8740db3594fefef554e6d157343382201878f22a68275230d0e309e4c74333fec705ce0008a70871c7f16bd25b3ea082b5b1adb2cd700ac2a9
7
+ data.tar.gz: 292c4166ab118cadb16b017fc71d92d0c55e91b979985335f7a809d24a42bc03aa61f194fe9e7a8201105d3e71365d7b6764f7f8d2d973cd2caa401f25d75d25
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,19 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- docker-cli (0.5.1)
5
- colorize
6
- ptools
7
- teLogger
8
- toolrack (= 0.24.1)
9
- tty-command
10
- tty-prompt
4
+ docker-cli (0.5.3)
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/
14
14
  specs:
15
15
  colorize (1.1.0)
16
- diff-lcs (1.5.0)
16
+ diff-lcs (1.5.1)
17
17
  git_cli (0.13.9)
18
18
  ptools (~> 1.4.0)
19
19
  teLogger (> 0.2)
@@ -21,7 +21,7 @@ GEM
21
21
  pastel (0.8.0)
22
22
  tty-color (~> 0.5)
23
23
  ptools (1.4.3)
24
- rake (13.1.0)
24
+ rake (13.2.1)
25
25
  release-gem (0.3.3)
26
26
  colorize (~> 1.1)
27
27
  git_cli (~> 0.13)
@@ -30,21 +30,21 @@ GEM
30
30
  toolrack (~> 0.23)
31
31
  tty-command (~> 0.10)
32
32
  tty-prompt (~> 0.23)
33
- rspec (3.12.0)
34
- rspec-core (~> 3.12.0)
35
- rspec-expectations (~> 3.12.0)
36
- rspec-mocks (~> 3.12.0)
37
- rspec-core (3.12.2)
38
- rspec-support (~> 3.12.0)
39
- rspec-expectations (3.12.3)
33
+ rspec (3.13.0)
34
+ rspec-core (~> 3.13.0)
35
+ rspec-expectations (~> 3.13.0)
36
+ rspec-mocks (~> 3.13.0)
37
+ rspec-core (3.13.0)
38
+ rspec-support (~> 3.13.0)
39
+ rspec-expectations (3.13.0)
40
40
  diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.12.0)
42
- rspec-mocks (3.12.6)
41
+ rspec-support (~> 3.13.0)
42
+ rspec-mocks (3.13.0)
43
43
  diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.12.0)
45
- rspec-support (3.12.1)
44
+ rspec-support (~> 3.13.0)
45
+ rspec-support (3.13.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
@@ -139,6 +139,7 @@ module Docker
139
139
 
140
140
  cmd << process_mount(opts)
141
141
  cmd << process_port(opts)
142
+ cmd << process_network(opts)
142
143
 
143
144
  if opts[:match_user] == true
144
145
  ui = UserInfo.user_info
@@ -149,7 +150,8 @@ module Docker
149
150
  cmd << image
150
151
 
151
152
  if not_empty?(opts[:command])
152
- cmd << "\"#{opts[:command]}\""
153
+ #cmd << "\"#{opts[:command]}\""
154
+ cmd << opts[:command]
153
155
  end
154
156
 
155
157
  interactive = false
@@ -285,6 +287,14 @@ module Docker
285
287
 
286
288
  end
287
289
 
290
+ def process_network(opts)
291
+ if not_empty?(opts) and not_empty?(opts[:network])
292
+ "--network=#{opts[:network]}"
293
+ else
294
+ ""
295
+ end
296
+ end
297
+
288
298
  def logger
289
299
  Cli.logger(:cmdFact)
290
300
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Docker
4
4
  module Cli
5
- VERSION = "0.5.1"
5
+ VERSION = "0.5.3"
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.1
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-24 00:00:00.000000000 Z
11
+ date: 2024-04-24 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