takeltau 0.40.11 → 0.41.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -28
- data/lib/takeltau/default.yml +1 -0
- data/lib/takeltau/info/status/arch.rb +31 -0
- data/lib/takeltau/info/status/bar.rb +15 -0
- data/lib/takeltau/info/status/cli.rb +16 -0
- data/lib/takeltau/version +1 -1
- data/lib/takeltau.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f12a1229e055bd977414effe0d9fcaec82f7a1ffe71d9a0ab0f6b88163d1891
|
4
|
+
data.tar.gz: ba8f640ad83863d932ee46c5502bab5168b735b1eb4995312d355b34fde05a69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e466d18765e3efb27790da7feda18dd628d73f989b935ec86a47931f221aed6c3b073efe39e74993a4bccb177ab0a55abcb204d4a5fa4c558f56ae84ccec1315
|
7
|
+
data.tar.gz: dfc40fbe5516f7593fafe61d6905037c7f892ea41d5aa539d3df97b3943c1ce8971a32aa156b5abf3dc7d50dbfd86122d3bf4c5f1235a26ffac323629c0e1f25
|
data/README.md
CHANGED
@@ -1,8 +1,3 @@
|
|
1
|
-
[![license](https://img.shields.io/github/license/takelwerk/takelage-cli?color=blueviolet)](https://github.com/takelwerk/takelage-cli/blob/main/LICENSE)
|
2
|
-
[![rubygems.org](https://img.shields.io/gem/v/takeltau?label=rubygems.org&color=blue)](https://rubygems.org/gems/takeltau)
|
3
|
-
[![deploy project](https://img.shields.io/github/workflow/status/takelwerk/takelage-cli/Build,%20test%20and%20deploy%20project?label=deploy%20project)](https://github.com/takelwerk/takelage-cli/actions/workflows/build_test_deploy_project_on_push.yml)
|
4
|
-
[![test project](https://img.shields.io/github/workflow/status/takelwerk/takelage-cli/Test%20project?label=test%20project)](https://github.com/takelwerk/takelage-cli/actions/workflows/test_project_nightly.yml)
|
5
|
-
|
6
1
|
# takelage-cli
|
7
2
|
|
8
3
|
*takelage-cli* is a command line interface
|
@@ -17,30 +12,35 @@ command line script using the
|
|
17
12
|
|
18
13
|
## Framework Versions
|
19
14
|
|
20
|
-
|
|
21
|
-
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
15
|
+
| Project | Artifacts |
|
16
|
+
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
17
|
+
| [![takelage-doc](https://img.shields.io/badge/github-takelage--doc-purple)](https://github.com/takelwerk/takelage-doc) | [![License](https://img.shields.io/badge/license-GNU_GPLv3-blue)](https://github.com/takelwerk/takelage-doc/blob/main/LICENSE) |
|
18
|
+
| [![takelage-img-takelslim](https://img.shields.io/badge/github-takelage--img--takelslim-purple)](https://github.com/takelwerk/takelage-img-takelslim) | [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelslim/latest?label=hub.docker.com&arch=amd64&color=teal)](https://hub.docker.com/r/takelwerk/takelslim) [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelslim/latest?label=hub.docker.com&arch=arm64&color=slateblue)](https://hub.docker.com/r/takelwerk/takelslim) |
|
19
|
+
| [![takelage-img-takelbase](https://img.shields.io/badge/github-takelage--img--takelbase-purple)](https://github.com/takelwerk/takelage-img-takelbase) | [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelbase/latest?label=hub.docker.com&arch=amd64&color=teal)](https://hub.docker.com/r/takelwerk/takelbase) [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelbase/latest?label=hub.docker.com&arch=arm64&color=slateblue)](https://hub.docker.com/r/takelwerk/takelbase) |
|
20
|
+
| [![takelage-img-takelruby](https://img.shields.io/badge/github-takelage--img--takelruby-purple)](https://github.com/takelwerk/takelage-img-takelruby) | [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelruby/latest?label=hub.docker.com&arch=amd64&color=teal)](https://hub.docker.com/r/takelwerk/takelruby) [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelruby/latest?label=hub.docker.com&arch=arm64&color=slateblue)](https://hub.docker.com/r/takelwerk/takelruby) |
|
21
|
+
| [![takelage-vagrant-takelbase](https://img.shields.io/badge/github-takelage--vagrant--takelbase-purple)](https://github.com/takelwerk/takelage-vagrant-takelbase) | [![vagrantup.com](https://img.shields.io/badge/vagrantup.com-debian--bullseye-blue)](https://app.vagrantup.com/takelwerk/boxes/takelbase) |
|
22
|
+
| [![takelage-var](https://img.shields.io/badge/github-takelage--var-purple)](https://github.com/takelwerk/takelage-var) | [![pypi,org](https://img.shields.io/pypi/v/pytest-takeltest?label=pypi.org&color=blue)](https://pypi.org/project/pytest-takeltest/) |
|
23
|
+
| [![takelage-cli](https://img.shields.io/badge/github-takelage--cli-purple)](https://github.com/takelwerk/takelage-cli) | [![rubygems.org](https://img.shields.io/gem/v/takeltau?label=rubygems.org&color=blue)](https://rubygems.org/gems/takeltau) |
|
24
|
+
| [![takelage-dev](https://img.shields.io/badge/github-takelage--dev-purple)](https://github.com/takelwerk/takelage-dev) | [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelage/latest?label=hub.docker.com&arch=amd64&sort=semver&color=teal)](https://hub.docker.com/r/takelwerk/takelage) [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelage/latest?label=hub.docker.com&arch=arm64&sort=semver&color=slateblue)](https://hub.docker.com/r/takelwerk/takelage) |
|
25
|
+
| [![takelage-pad](https://img.shields.io/badge/github-takelage--pad-purple)](https://github.com/takelwerk/takelage-pad) | [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelpad/latest?label=hub.docker.com&sort=semver&color=blue)](https://hub.docker.com/r/takelwerk/takelpad) |
|
31
26
|
|
32
27
|
## Framework Status
|
33
28
|
|
34
|
-
|
|
35
|
-
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
| Project | Pipelines |
|
30
|
+
|---------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
31
|
+
| [![takelage-img-takelslim](https://img.shields.io/badge/github-takelage--img--takelslim-purple)](https://github.com/takelwerk/takelage-img-takelslim) | [![takelslim amd64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-img-takelslim/takelslim_amd64.yml?label=takelslim%20amd64)](https://github.com/takelwerk/takelage-img-takelslim/actions/workflows/takelslim_amd64.yml) [![takelslim arm64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-img-takelslim/takelslim_arm64.yml?label=takelslim%20arm64)](https://github.com/takelwerk/takelage-img-takelslim/actions/workflows/takelslim_arm64.yml) |
|
32
|
+
| [![takelage-img-takelbase](https://img.shields.io/badge/github-takelage--img--takelbase-purple)](https://github.com/takelwerk/takelage-img-takelbase) | [![takelbase amd64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-img-takelbase/takelbase_amd64.yml?label=takelbase%20amd64)](https://github.com/takelwerk/takelage-img-takelbase/actions/workflows/takelbase_amd64.yml) [![takelbase arm64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-img-takelbase/takelbase_arm64.yml?label=takelbase%20arm64)](https://github.com/takelwerk/takelage-img-takelbase/actions/workflows/takelbase_arm64.yml) |
|
33
|
+
| [![takelage-img-takelruby](https://img.shields.io/badge/github-takelage--img--takelruby-purple)](https://github.com/takelwerk/takelage-img-takelruby) | [![takelruby amd64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-img-takelruby/takelruby_amd64.yml?label=takelruby%20amd64)](https://github.com/takelwerk/takelage-img-takelruby/actions/workflows/takelruby_amd64.yml) [![takelruby arm64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-img-takelruby/takelruby_arm64.yml?label=takelruby%20arm64)](https://github.com/takelwerk/takelage-img-takelruby/actions/workflows/takelruby_arm64.yml) |
|
34
|
+
| [![takelage-vagrant-takelbase](https://img.shields.io/badge/github-takelage--vagrant--takelbase-purple)](https://github.com/takelwerk/takelage-vagrant-takelbase) | [![virtualbox](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-vagrant-takelbase/virtualbox.yml?label=virtualbox)](https://github.com/takelwerk/takelage-vagrant-takelbase/actions/workflows/virtualbox.yml) |
|
35
|
+
| [![takelage-var](https://img.shields.io/badge/github-takelage--var-purple)](https://github.com/takelwerk/takelage-var) | [![takeltest](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-var/takeltest.yml?label=takeltest)](https://github.com/takelwerk/takelage-var/actions/workflows/takeltest.yml) [![test_takeltest](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-var/test_takeltest.yml?label=test%20takeltest)](https://github.com/takelwerk/takelage-var/actions/workflows/test_takeltest.yml) |
|
36
|
+
| [![takelage-cli](https://img.shields.io/badge/github-takelage--cli-purple)](https://github.com/takelwerk/takelage-cli) | [![takeltau](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-cli/takeltau.yml?label=takeltau)](https://github.com/takelwerk/takelage-cli/actions/workflows/takeltau.yml) [![test_takeltau](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-cli/test_takeltau.yml?label=test%20takeltau)](https://github.com/takelwerk/takelage-cli/actions/workflows/test_takeltau.yml) |
|
37
|
+
| [![takelage-dev](https://img.shields.io/badge/github-takelage--dev-purple)](https://github.com/takelwerk/takelage-dev) | [![takelage amd64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-dev/takelage_amd64.yml?label=takelage%20amd64)](https://github.com/takelwerk/takelage-dev/actions/workflows/takelage_amd64.yml) [![takelage arm64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-dev/takelage_arm64.yml?label=takelage%20arm64)](https://github.com/takelwerk/takelage-dev/actions/workflows/takelage_arm64.yml) |
|
38
|
+
| | [![takelbeta amd64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-dev/takelbeta_amd64.yml?label=takelbeta%20amd64)](https://github.com/takelwerk/takelage-dev/actions/workflows/takelbeta_amd64.yml) [![takelbeta arm64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-dev/takelbeta_arm64.yml?label=takelbeta%20arm64)](https://github.com/takelwerk/takelage-dev/actions/workflows/takelbeta_arm64.yml) |
|
39
|
+
| | [![takelbuild amd64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-dev/takelbuild_amd64.yml?label=takelbuild%20amd64)](https://github.com/takelwerk/takelage-dev/actions/workflows/takelbuild_amd64.yml) [![takelbuild arm64](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-dev/takelbuild_arm64.yml?label=takelbuild%20arm64)](https://github.com/takelwerk/takelage-dev/actions/workflows/takelbuild_arm64.yml) |
|
40
|
+
| | [![test_takelage](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-dev/test_takelage.yml?label=test%20takelage)](https://github.com/takelwerk/takelage-dev/actions/workflows/test_takelage.yml) [![test_roles](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-dev/test_roles.yml?label=test%20roles)](https://github.com/takelwerk/takelage-dev/actions/workflows/test_roles.yml) |
|
41
|
+
| | [![test_takelbuild](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-dev/test_takelbuild.yml?label=test%20takelbuild)](https://github.com/takelwerk/takelage-dev/actions/workflows/test_takelbuild.yml) |
|
42
|
+
| [![takelage-pad](https://img.shields.io/badge/github-takelage--pad-purple)](https://github.com/takelwerk/takelage-pad) | [![takelpad_docker](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-pad/takelpad_docker.yml?label=takelpad_docker)](https://github.com/takelwerk/takelage-pad/actions/workflows/takelpad_docker.yml) [![takelpad_virtualbox](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-pad/takelpad_virtualbox.yml?label=takelpad_virtualbox)](https://github.com/takelwerk/takelage-pad/actions/workflows/takelpad_virtualbox.yml) |
|
43
|
+
| | [![test_takelpad](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-pad/test_takelpad.yml?label=test_takelpad)](https://github.com/takelwerk/takelage-pad/actions/workflows/test_takelpad.yml) [![test_roles](https://img.shields.io/github/actions/workflow/status/takelwerk/takelage-pad/test_roles.yml?label=test_roles)](https://github.com/takelwerk/takelage-pad/actions/workflows/test_roles.yml) |
|
44
44
|
|
45
45
|
## Installation
|
46
46
|
|
@@ -62,8 +62,8 @@ You are encouraged to read the cucumber feature files
|
|
62
62
|
for the *tau* commands
|
63
63
|
to get an idea of how the commands work.
|
64
64
|
You can list the *tau* commands by running
|
65
|
-
*tau [self
|
66
|
-
or *tau
|
65
|
+
*tau [self commands](features/cucumber/features/self/self.commands.feature)*
|
66
|
+
or *tau commands*:
|
67
67
|
|
68
68
|
Command | Description
|
69
69
|
------- | -----------
|
@@ -92,6 +92,7 @@ tau [info project dir](features/cucumber/features/info/info.project.dir.feature)
|
|
92
92
|
tau [info project main](features/cucumber/features/info/info.project.main.feature) | Print main project info
|
93
93
|
tau [info project private](features/cucumber/features/info/info.project.private.feature) | Print private project info
|
94
94
|
tau [info status bar](features/cucumber/features/info/info.status.bar.feature) | Print status bar
|
95
|
+
tau [info status arch](features/cucumber/features/info/info.status.arch.feature) | Check arch status
|
95
96
|
tau [info status git](features/cucumber/features/info/info.status.git.feature) | Check git status
|
96
97
|
tau [info status gopass](features/cucumber/features/info/info.status.gopass.feature) | Check gopass status
|
97
98
|
tau [info status gpg](features/cucumber/features/info/info.status.gpg.feature) | Check gpg status
|
data/lib/takeltau/default.yml
CHANGED
@@ -34,6 +34,7 @@ cmd_info_status_lib_git_name: 'git -C %{root} config user.name'
|
|
34
34
|
cmd_info_status_lib_git_email: 'git -C %{root} config user.email'
|
35
35
|
cmd_info_status_lib_git_signingkey: 'git -C %{root} config user.signingKey'
|
36
36
|
cmd_info_status_lib_git_key_available: 'gpg --list-key %{key}'
|
37
|
+
cmd_info_status_arch_get_arch: 'arch'
|
37
38
|
cmd_info_status_gopass_root_store: 'gopass config | grep "path" | cut -d " " -f 2'
|
38
39
|
cmd_info_status_gpg_agent: 'gpg-connect-agent /bye'
|
39
40
|
cmd_info_status_gpg_keys: 'gpg --list-keys'
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# tau info status arch
|
4
|
+
module InfoStatusArch
|
5
|
+
# Backend method for info status arch.
|
6
|
+
# @return [String] get cpu architecture
|
7
|
+
def info_status_arch
|
8
|
+
log.debug 'Get cpu architecture'
|
9
|
+
|
10
|
+
architecture = _info_status_arch_get_architecture.to_sym
|
11
|
+
# rubocop:disable Naming/VariableNumber
|
12
|
+
architectures = { arm64: 'arm64', aarch64: 'arm64', x86_64: 'amd64' }
|
13
|
+
# rubocop:enable Naming/VariableNumber
|
14
|
+
unless architectures.key? architecture
|
15
|
+
log.error 'cpu architecture unknown'
|
16
|
+
return false
|
17
|
+
end
|
18
|
+
|
19
|
+
arch = architectures[architecture]
|
20
|
+
log.debug "CPU architecture is #{arch}"
|
21
|
+
arch
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
# Get gopass root store
|
27
|
+
def _info_status_arch_get_architecture
|
28
|
+
cmd_get_arch = config.active['cmd_info_status_arch_get_arch']
|
29
|
+
(run cmd_get_arch).chomp
|
30
|
+
end
|
31
|
+
end
|
@@ -13,6 +13,7 @@ module InfoStatusBar
|
|
13
13
|
|
14
14
|
_info_status_bar_takelage
|
15
15
|
_info_status_bar_tau
|
16
|
+
_info_status_bar_arch
|
16
17
|
_info_status_bar_git
|
17
18
|
_info_status_bar_gopass
|
18
19
|
_info_status_bar_gpg
|
@@ -40,6 +41,20 @@ module InfoStatusBar
|
|
40
41
|
@bar_list << "tau: #{Takeltau::VERSION.green}"
|
41
42
|
end
|
42
43
|
|
44
|
+
# Add architecture info to bar.
|
45
|
+
def _info_status_bar_arch
|
46
|
+
arch = info_status_arch
|
47
|
+
if arch == false
|
48
|
+
@status_arch = false
|
49
|
+
architecture = 'unknown'.red
|
50
|
+
else
|
51
|
+
@status_arch = true
|
52
|
+
architecture = arch.green
|
53
|
+
end
|
54
|
+
@bar_status &&= @status_arch
|
55
|
+
@bar_list << "arch: #{architecture}"
|
56
|
+
end
|
57
|
+
|
43
58
|
# Add git status info to bar.
|
44
59
|
def _info_status_bar_git
|
45
60
|
@status_git = info_status_git
|
@@ -13,6 +13,7 @@ module Takeltau
|
|
13
13
|
include DockerContainerLib
|
14
14
|
include GitCheckWorkspace
|
15
15
|
include InfoStatusLib
|
16
|
+
include InfoStatusArch
|
16
17
|
include InfoStatusGit
|
17
18
|
include InfoStatusGopass
|
18
19
|
include InfoStatusGPG
|
@@ -45,6 +46,21 @@ module Takeltau
|
|
45
46
|
exit info_status_bar
|
46
47
|
end
|
47
48
|
|
49
|
+
#
|
50
|
+
# info status arch
|
51
|
+
#
|
52
|
+
desc 'arch', 'Check arch status info'
|
53
|
+
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
54
|
+
Check arch status info
|
55
|
+
LONGDESC
|
56
|
+
# Check arch status info.
|
57
|
+
def arch
|
58
|
+
arch = info_status_arch
|
59
|
+
exit false if arch == false
|
60
|
+
say arch
|
61
|
+
true
|
62
|
+
end
|
63
|
+
|
48
64
|
#
|
49
65
|
# info status git
|
50
66
|
#
|
data/lib/takeltau/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.41.9
|
data/lib/takeltau.rb
CHANGED
@@ -68,6 +68,7 @@ require_relative 'takeltau/mutagen/socket/list'
|
|
68
68
|
require_relative 'takeltau/mutagen/socket/cli'
|
69
69
|
require_relative 'takeltau/mutagen/cli'
|
70
70
|
require_relative 'takeltau/info/status/lib'
|
71
|
+
require_relative 'takeltau/info/status/arch'
|
71
72
|
require_relative 'takeltau/info/status/git'
|
72
73
|
require_relative 'takeltau/info/status/gopass'
|
73
74
|
require_relative 'takeltau/info/status/gpg'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: takeltau
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.41.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takelwerk
|
@@ -239,6 +239,7 @@ files:
|
|
239
239
|
- lib/takeltau/hg/push.rb
|
240
240
|
- lib/takeltau/info/cli.rb
|
241
241
|
- lib/takeltau/info/project/cli.rb
|
242
|
+
- lib/takeltau/info/status/arch.rb
|
242
243
|
- lib/takeltau/info/status/bar.rb
|
243
244
|
- lib/takeltau/info/status/cli.rb
|
244
245
|
- lib/takeltau/info/status/git.rb
|