mkit 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/mkit +4 -4
- data/lib/mkit/client/commands.yaml +4 -4
- data/lib/mkit/docker_log_listener.rb +1 -0
- data/lib/mkit/version.rb +1 -1
- data/mkit.gemspec +1 -0
- metadata +22 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ddd1f77569b1f7982812ae1cf236b76816bd6fc31a27cde9067e010a296c981
|
4
|
+
data.tar.gz: cedb9272ef3c6ce621989c94a2fd08bf917e7a1f242c4f465306d82749af103c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ae6c65f2c6b68e116c66c8ac5716f5668d7642922869fdccbf55264d9f9bd96bc36320148bcd9e7d0f2909d010f1caf55e18095c301415432e48a2ecb5845dc
|
7
|
+
data.tar.gz: ad171bc7fa68ac93813dd15675119bc328f929063694c4627c7db013a5ad938dfdbedb0c8a7a9e45fbfc5b2ae834ef11ca4a24fae16ff37cd81c1f9d0a1da2b4
|
data/bin/mkit
CHANGED
@@ -42,14 +42,14 @@ class MKItClient
|
|
42
42
|
FileUtils.mkdir_p(@config_dir)
|
43
43
|
end
|
44
44
|
FileUtils.cp("#{@root}/config/mkitc_config.yml", @config_dir) unless File.exist?(@config_file)
|
45
|
-
profile({ verb: 'set' }, {
|
45
|
+
profile({ verb: 'set' }, { profile: 'local' }) unless File.exist?(@profile_file)
|
46
46
|
end
|
47
47
|
|
48
48
|
def read_configuration(init_call = false)
|
49
49
|
current_profile = File.read(@profile_file)
|
50
50
|
if current_profile.nil? || current_profile.empty?
|
51
51
|
# force set default
|
52
|
-
profile({ verb: 'set' }, {
|
52
|
+
profile({ verb: 'set' }, { profile: 'local' })
|
53
53
|
current_profile = 'local'
|
54
54
|
end
|
55
55
|
cfg = YAML.load_file(@config_file)
|
@@ -146,13 +146,13 @@ class MKItClient
|
|
146
146
|
|
147
147
|
case request[:verb]
|
148
148
|
when 'set'
|
149
|
-
profile = request_data[:
|
149
|
+
profile = request_data[:profile]
|
150
150
|
if cfg['mkit'][profile.lstrip].nil?
|
151
151
|
raise InvalidParametersException.new("Profile not found on '~/.mkit' configuration", cmd)
|
152
152
|
end
|
153
153
|
|
154
154
|
puts "Setting current profile to #{profile}."
|
155
|
-
File.write(@profile_file, request_data[:
|
155
|
+
File.write(@profile_file, request_data[:profile])
|
156
156
|
''
|
157
157
|
when 'show'
|
158
158
|
active = File.read("#{@config_dir}/current")
|
@@ -134,8 +134,8 @@
|
|
134
134
|
- "-f"
|
135
135
|
- name: nr_lines
|
136
136
|
help:
|
137
|
-
- -n <
|
138
|
-
- Number of lines to show from the end of the logs
|
137
|
+
- -n <string>
|
138
|
+
- Number of lines to show from the end of the logs (default 10)
|
139
139
|
mandatory: false
|
140
140
|
param: "<%=nr_lines%>"
|
141
141
|
type: option
|
@@ -144,7 +144,7 @@
|
|
144
144
|
- name: pods
|
145
145
|
help:
|
146
146
|
- -p <[pods]>
|
147
|
-
- Show logs for specified
|
147
|
+
- Show logs for specified pods, e.g. pod1, pod2 (default first)
|
148
148
|
mandatory: false
|
149
149
|
param: "<%=pods%>"
|
150
150
|
type: option
|
@@ -182,7 +182,7 @@
|
|
182
182
|
uri: "/mkit/proxy/status"
|
183
183
|
- cmd: profile
|
184
184
|
usage:
|
185
|
-
- "<[set <
|
185
|
+
- "<[set <profile>]|[show]>"
|
186
186
|
help: mkit client configuration profile
|
187
187
|
options:
|
188
188
|
- cmd: set
|
data/lib/mkit/version.rb
CHANGED
data/mkit.gemspec
CHANGED
@@ -37,4 +37,5 @@ Gem::Specification.new do |s|
|
|
37
37
|
s.add_runtime_dependency 'standalone_migrations', '~> 7.1', '< 7.2.0'
|
38
38
|
s.add_runtime_dependency 'thin', '~> 1.8', '>= 1.8.1'
|
39
39
|
s.add_runtime_dependency 'text-table', '~> 1.2', '>= 1.2.4'
|
40
|
+
s.add_runtime_dependency 'faye-websocket', '~> 0.11', '>= 0.11.3'
|
40
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasco Santos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-dns
|
@@ -330,6 +330,26 @@ dependencies:
|
|
330
330
|
- - ">="
|
331
331
|
- !ruby/object:Gem::Version
|
332
332
|
version: 1.2.4
|
333
|
+
- !ruby/object:Gem::Dependency
|
334
|
+
name: faye-websocket
|
335
|
+
requirement: !ruby/object:Gem::Requirement
|
336
|
+
requirements:
|
337
|
+
- - "~>"
|
338
|
+
- !ruby/object:Gem::Version
|
339
|
+
version: '0.11'
|
340
|
+
- - ">="
|
341
|
+
- !ruby/object:Gem::Version
|
342
|
+
version: 0.11.3
|
343
|
+
type: :runtime
|
344
|
+
prerelease: false
|
345
|
+
version_requirements: !ruby/object:Gem::Requirement
|
346
|
+
requirements:
|
347
|
+
- - "~>"
|
348
|
+
- !ruby/object:Gem::Version
|
349
|
+
version: '0.11'
|
350
|
+
- - ">="
|
351
|
+
- !ruby/object:Gem::Version
|
352
|
+
version: 0.11.3
|
333
353
|
description: Micro k8s on Ruby - a simple tool to deploy containers to mimic a (very)
|
334
354
|
minimalistic k8 cluster with a nice REST API
|
335
355
|
email:
|