takeltau 0.35.18 → 0.36.1
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/README.md +9 -7
- data/lib/takeltau/default.yml +3 -3
- data/lib/takeltau/hg/cli.rb +7 -7
- data/lib/takeltau/hg/list.rb +18 -0
- data/lib/takeltau/self/cli.rb +7 -7
- data/lib/takeltau/self/{list.rb → commands.rb} +9 -9
- data/lib/takeltau/version +1 -1
- data/lib/takeltau.rb +6 -18
- metadata +3 -3
- data/lib/takeltau/hg/export.rb +0 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 401a6ec84063daaad2d0b2ba91232b5d3f0322a2675ecc61eef9998d22867378
|
|
4
|
+
data.tar.gz: c79e35f420922cd660ea5e80504f6cb909b4387aedefa7fffeb3db97c6d4c847
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff29b7c25e3955263a0bd1d0fa74f1ee5e43af8759d1d6daf3680084659aaae8c9610976e73524eea1d875738b161b2abaa7e9a0bff1c478dc33ddf945cd6b1a
|
|
7
|
+
data.tar.gz: 7e5fc47759b9488e4f18019cce0eaf2221864ba7a08b8ab70dc3279eaa2f975a64f7e93130f305256c4f8a868f8960fed27d96a1940b436098af3c151afb6623
|
data/README.md
CHANGED
|
@@ -21,22 +21,26 @@ command line script using the
|
|
|
21
21
|
| --- | -------- |
|
|
22
22
|
| *[takelage-doc](https://github.com/takelwerk/takelage-doc)* | [](https://github.com/takelwerk/takelage-doc/blob/main/LICENSE) |
|
|
23
23
|
| *[takelage-dev](https://github.com/takelwerk/takelage-dev)* | [](https://hub.docker.com/r/takelwerk/takelage) |
|
|
24
|
+
| *[takelage-pad](https://github.com/takelwerk/takelage-pad)* | [](https://hub.docker.com/r/takelwerk/takelpad) |
|
|
24
25
|
| *[takelage-cli](https://github.com/takelwerk/takelage-cli)* | [](https://rubygems.org/gems/takeltau) |
|
|
25
26
|
| *[takelage-var](https://github.com/takelwerk/takelage-var)* | [](https://pypi.org/project/pytest-takeltest/) |
|
|
26
27
|
| *[takelage-img-takelslim](https://github.com/takelwerk/takelage-img-takelslim)* | [](https://hub.docker.com/r/takelwerk/takelslim) |
|
|
27
28
|
| *[takelage-img-takelbase](https://github.com/takelwerk/takelage-img-takelbase)* | [](https://hub.docker.com/r/takelwerk/takelbase) |
|
|
28
29
|
| *[takelage-img-takelruby](https://github.com/takelwerk/takelage-img-takelruby)* | [](https://hub.docker.com/r/takelwerk/takelruby) |
|
|
30
|
+
| *[takelage-vbox-takelbase](https://github.com/takelwerk/takelage-vbox-takelbase)* | [](https://app.vagrantup.com/takelwerk/boxes/takelbase) |
|
|
29
31
|
|
|
30
32
|
## Framework Status
|
|
31
33
|
|
|
32
|
-
| App | Deploy project | Test project | Test roles |
|
|
33
|
-
| --- | -------------- | ------------ | ---------- |
|
|
34
|
+
| App | Deploy project | Test project | Test roles | Deploy vbox |
|
|
35
|
+
| --- | -------------- | ------------ | ---------- | ----------- |
|
|
34
36
|
| *[takelage-dev](https://github.com/takelwerk/takelage-dev)* | [](https://github.com/takelwerk/takelage-dev/actions/workflows/build_test_deploy_project_on_push.yml) | [](https://github.com/takelwerk/takelage-dev/actions/workflows/build_test_project_nightly.yml) | [](https://github.com/takelwerk/takelage-dev/actions/workflows/build_test_roles_nightly.yml) |
|
|
37
|
+
| *[takelage-pad](https://github.com/takelwerk/takelage-pad)* | [](https://github.com/takelwerk/takelage-pad/actions/workflows/build_test_deploy_project_on_push.yml) | [](https://github.com/takelwerk/takelage-pad/actions/workflows/build_test_project_nightly.yml) | [](https://github.com/takelwerk/takelage-pad/actions/workflows/build_test_roles_nightly.yml) | [](https://github.com/takelwerk/takelage-pad/actions/workflows/build_deploy_project_vbox_on_push.yml) |
|
|
35
38
|
| *[takelage-cli](https://github.com/takelwerk/takelage-cli)* | [](https://github.com/takelwerk/takelage-cli/actions/workflows/build_test_deploy_project_on_push.yml) | [](https://github.com/takelwerk/takelage-cli/actions/workflows/test_project_nightly.yml) |
|
|
36
39
|
| *[takelage-var](https://github.com/takelwerk/takelage-var)* | [](https://github.com/takelwerk/takelage-var/actions/workflows/build_test_deploy_project_on_push.yml) | [](https://github.com/takelwerk/takelage-var/actions/workflows/build_test_project_nightly.yml) |
|
|
37
40
|
| *[takelage-img-takelslim](https://github.com/takelwerk/takelage-img-takelslim)* | [](https://github.com/takelwerk/takelage-img-takelslim/actions/workflows/build_deploy_takelslim_nightly.yml) |
|
|
38
41
|
| *[takelage-img-takelbase](https://github.com/takelwerk/takelage-img-takelbase)* | [](https://github.com/takelwerk/takelage-img-takelbase/actions/workflows/build_deploy_takelbase_nightly.yml) |
|
|
39
42
|
| *[takelage-img-takelruby](https://github.com/takelwerk/takelage-img-takelruby)* | [](https://github.com/takelwerk/takelage-img-takelruby/actions/workflows/build_deploy_takelruby_nightly.yml) |
|
|
43
|
+
| *[takelage-vbox-takelbase](https://github.com/takelwerk/takelage-vbox-takelbase)* | [](https://github.com/takelwerk/takelage-vbox-takelbase/actions/workflows/build_and_deploy_project_nightly.yml) | | | [](https://github.com/takelwerk/takelage-vbox-takelbase/actions/workflows/build_and_deploy_project_nightly.yml) |
|
|
40
44
|
|
|
41
45
|
## Installation
|
|
42
46
|
|
|
@@ -80,7 +84,7 @@ tau [docker image update](features/cucumber/features/docker/docker.image.update.
|
|
|
80
84
|
tau [git check clean](features/cucumber/features/git/git.check.clean.feature) | Check if the git workspace is clean
|
|
81
85
|
tau [git check hg](features/cucumber/features/git/git.check.hg.feature) | Check if we are on the git hg branch
|
|
82
86
|
tau [git check workspace](features/cucumber/features/git/git.check.workspace.feature) | Check if a git workspace exists
|
|
83
|
-
tau [hg
|
|
87
|
+
tau [hg list](features/cucumber/features/hg/hg.list.feature) | List hg repos
|
|
84
88
|
tau [hg pull](features/cucumber/features/hg/hg.pull.feature) | Pull hg repos
|
|
85
89
|
tau [hg push](features/cucumber/features/hg/hg.push.feature) | Push hg repos
|
|
86
90
|
tau [info project active](features/cucumber/features/info/info.project.active.feature) | Print active project info
|
|
@@ -104,16 +108,14 @@ tau [self config active](features/cucumber/features/self/self.config.active.feat
|
|
|
104
108
|
tau [self config default](features/cucumber/features/self/self.config.default.feature) | Print takelage default configuration
|
|
105
109
|
tau [self config home](features/cucumber/features/self/self.config.home.feature) | Print takelage home config file configuration
|
|
106
110
|
tau [self config project](features/cucumber/features/self/self.config.project.feature) | Print takelage project config file configuration
|
|
107
|
-
tau [self
|
|
111
|
+
tau [self commands](features/cucumber/features/self/self.commands.feature) | List all commands
|
|
108
112
|
tau [self version](features/cucumber/features/self/self.version.feature) | Print tau semantic version number
|
|
109
113
|
tau clean | Alias for tau [docker container clean](features/cucumber/features/docker/docker.container.clean.feature)
|
|
110
114
|
tau config | Alias for tau [self config active](features/cucumber/features/self/self.config.active.feature)
|
|
111
|
-
tau
|
|
115
|
+
tau commands | Alias for tau [self commands](features/cucumber/features/self/self.commands.feature)
|
|
112
116
|
tau login | Alias for tau [docker container login](features/cucumber/features/docker/docker.container.login.feature)
|
|
113
117
|
tau project | Alias for tau [info project active](features/cucumber/features/info/info.project.active.feature)
|
|
114
118
|
tau prune | Alias for tau [docker container prune](features/cucumber/features/docker/docker.container.prune.feature)
|
|
115
|
-
tau pull | Alias for tau [hg pull](features/cucumber/features/hg/hg.pull.feature)
|
|
116
|
-
tau push | Alias for tau [hg push](features/cucumber/features/hg/hg.push.feature)
|
|
117
119
|
tau status | Alias for tau [docker info status bar](features/cucumber/features/info/info.status.bar.feature)
|
|
118
120
|
tau update | Alias for tau [docker image update](features/cucumber/features/docker/docker.image.update.feature)
|
|
119
121
|
tau version | Alias for tau [self version](features/cucumber/features/self/self.version.feature)
|
data/lib/takeltau/default.yml
CHANGED
|
@@ -27,9 +27,9 @@ cmd_git_lib_git_add_all: 'git add --all'
|
|
|
27
27
|
cmd_git_lib_git_commit: 'git commit --message="%{message}"'
|
|
28
28
|
cmd_git_lib_git_pull_origin: 'git pull origin %{main}'
|
|
29
29
|
cmd_git_lib_git_push_origin: 'git push origin %{main}'
|
|
30
|
-
|
|
31
|
-
cmd_hg_pull_repos: 'cd %{root}; find * -type d -name ".hg" | parallel -k echo \; cd {//} \; pwd \; hg pull
|
|
32
|
-
cmd_hg_push_repos: 'cd %{root}; find * -type d -name ".hg" | parallel -k echo \; cd {//} \; pwd \; hg addremove
|
|
30
|
+
cmd_hg_list_repos: 'cd %{root}; find * -type d -name ".hg" | parallel -k hg paths default -R {//} -T "hg\ clone\ {url}\ " \; echo {//}'
|
|
31
|
+
cmd_hg_pull_repos: 'cd %{root}; find * -type d -name ".hg" | parallel -k echo \; cd {//} \; pwd \; hg pull --update'
|
|
32
|
+
cmd_hg_push_repos: 'cd %{root}; find * -type d -name ".hg" | parallel -k echo \; cd {//} \; pwd \; hg commit --addremove --message "Update\ hg\ repos" \; hg bookmark -f main \; hg push'
|
|
33
33
|
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'
|
data/lib/takeltau/hg/cli.rb
CHANGED
|
@@ -10,20 +10,20 @@ module Takeltau
|
|
|
10
10
|
include GitCheckHg
|
|
11
11
|
include GitCheckWorkspace
|
|
12
12
|
include GitLib
|
|
13
|
-
include
|
|
13
|
+
include HgList
|
|
14
14
|
include HgPull
|
|
15
15
|
include HgPush
|
|
16
16
|
|
|
17
17
|
#
|
|
18
|
-
# hg
|
|
18
|
+
# hg list
|
|
19
19
|
#
|
|
20
|
-
desc '
|
|
20
|
+
desc 'list', 'List hg repos'
|
|
21
21
|
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
|
22
|
-
|
|
22
|
+
List hg repos
|
|
23
23
|
LONGDESC
|
|
24
|
-
#
|
|
25
|
-
def
|
|
26
|
-
hgclone =
|
|
24
|
+
# List hg repos.
|
|
25
|
+
def list
|
|
26
|
+
hgclone = hg_list
|
|
27
27
|
exit false if hgclone == false
|
|
28
28
|
say hgclone
|
|
29
29
|
true
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# tau hg list
|
|
4
|
+
module HgList
|
|
5
|
+
# Backend method for hg list.
|
|
6
|
+
def hg_list
|
|
7
|
+
log.debug 'List hg repos'
|
|
8
|
+
|
|
9
|
+
return false unless configured? %w[project_root_dir]
|
|
10
|
+
|
|
11
|
+
cmd_hg_list_repos = format(
|
|
12
|
+
config.active['cmd_hg_list_repos'],
|
|
13
|
+
root: config.active['project_root_dir']
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
run cmd_hg_list_repos
|
|
17
|
+
end
|
|
18
|
+
end
|
data/lib/takeltau/self/cli.rb
CHANGED
|
@@ -7,23 +7,23 @@ module Takeltau
|
|
|
7
7
|
# tau self
|
|
8
8
|
class Self < SubCommandBase
|
|
9
9
|
include LoggingModule
|
|
10
|
-
include
|
|
10
|
+
include SelfCommands
|
|
11
11
|
|
|
12
12
|
desc 'config [COMMAND]', 'Manage takeltau configuration'
|
|
13
13
|
subcommand 'config', SelfConfig
|
|
14
14
|
|
|
15
15
|
#
|
|
16
|
-
# self
|
|
16
|
+
# self commands
|
|
17
17
|
#
|
|
18
|
-
desc '
|
|
18
|
+
desc 'commands', 'List all commands'
|
|
19
19
|
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
|
20
20
|
List all commands
|
|
21
21
|
LONGDESC
|
|
22
22
|
# List all commands.
|
|
23
|
-
def
|
|
24
|
-
|
|
25
|
-
exit false if
|
|
26
|
-
say
|
|
23
|
+
def commands
|
|
24
|
+
commands = self_commands
|
|
25
|
+
exit false if commands == false
|
|
26
|
+
say commands
|
|
27
27
|
true
|
|
28
28
|
end
|
|
29
29
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
# tau self
|
|
4
|
-
module
|
|
5
|
-
# Backend method for config self.
|
|
6
|
-
def
|
|
3
|
+
# tau self commands
|
|
4
|
+
module SelfCommands
|
|
5
|
+
# Backend method for config self commands.
|
|
6
|
+
def self_commands
|
|
7
7
|
_manipulate_output_(_get_thor_list_)
|
|
8
8
|
end
|
|
9
9
|
|
|
@@ -26,10 +26,10 @@ module SelfList
|
|
|
26
26
|
|
|
27
27
|
# Manipulate output of thor list command.
|
|
28
28
|
def _manipulate_output_(thor_list)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
tau_commands = thor_list.gsub("takeltau\n", '')
|
|
30
|
+
tau_commands.gsub!("------\n", '')
|
|
31
|
+
tau_commands.gsub!('thor ', 'tau ')
|
|
32
|
+
tau_commands.gsub!(/(.*)takeltau:c_l_i:(.*)#(.*)/, '\1\2 #\3')
|
|
33
|
+
tau_commands.gsub!(/.*COMMAND.*\n/, '')
|
|
34
34
|
end
|
|
35
35
|
end
|
data/lib/takeltau/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.36.1
|
data/lib/takeltau.rb
CHANGED
|
@@ -27,7 +27,7 @@ require_relative 'takeltau/git/check/workspace'
|
|
|
27
27
|
require_relative 'takeltau/git/check/cli'
|
|
28
28
|
require_relative 'takeltau/git/lib'
|
|
29
29
|
require_relative 'takeltau/git/cli'
|
|
30
|
-
require_relative 'takeltau/hg/
|
|
30
|
+
require_relative 'takeltau/hg/list'
|
|
31
31
|
require_relative 'takeltau/hg/pull'
|
|
32
32
|
require_relative 'takeltau/hg/push'
|
|
33
33
|
require_relative 'takeltau/hg/cli'
|
|
@@ -76,7 +76,7 @@ require_relative 'takeltau/info/status/cli'
|
|
|
76
76
|
require_relative 'takeltau/info/project/cli'
|
|
77
77
|
require_relative 'takeltau/info/cli'
|
|
78
78
|
require_relative 'takeltau/self/config/cli'
|
|
79
|
-
require_relative 'takeltau/self/
|
|
79
|
+
require_relative 'takeltau/self/commands'
|
|
80
80
|
require_relative 'takeltau/self/cli'
|
|
81
81
|
|
|
82
82
|
# Facilitate the takelage devops workflow.
|
|
@@ -171,10 +171,10 @@ module Takeltau
|
|
|
171
171
|
Takeltau::DockerContainer.new.login
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
-
desc '
|
|
175
|
-
# tau version: {Takeltau::Self#
|
|
176
|
-
def
|
|
177
|
-
Takeltau::Self.new.
|
|
174
|
+
desc 'commands', 'Alias for tau self commands'
|
|
175
|
+
# tau version: {Takeltau::Self#commands}
|
|
176
|
+
def commands
|
|
177
|
+
Takeltau::Self.new.commands
|
|
178
178
|
end
|
|
179
179
|
|
|
180
180
|
desc 'project', 'Alias for tau info project active'
|
|
@@ -189,18 +189,6 @@ module Takeltau
|
|
|
189
189
|
Takeltau::DockerContainer.new.prune
|
|
190
190
|
end
|
|
191
191
|
|
|
192
|
-
desc 'pull', 'Alias for tau hg pull'
|
|
193
|
-
# tau pull: {Takeltau::Hg#pull}
|
|
194
|
-
def pull
|
|
195
|
-
Takeltau::Hg.new.pull
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
desc 'push', 'Alias for tau hg push'
|
|
199
|
-
# tau push: {Takeltau::Hg#push}
|
|
200
|
-
def push
|
|
201
|
-
Takeltau::Hg.new.push
|
|
202
|
-
end
|
|
203
|
-
|
|
204
192
|
desc 'status', 'Alias for tau info status bar'
|
|
205
193
|
# tau status: {Takeltau::InfoStatus#bar}
|
|
206
194
|
def status
|
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.36.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Takelwerk
|
|
@@ -234,7 +234,7 @@ files:
|
|
|
234
234
|
- lib/takeltau/git/cli.rb
|
|
235
235
|
- lib/takeltau/git/lib.rb
|
|
236
236
|
- lib/takeltau/hg/cli.rb
|
|
237
|
-
- lib/takeltau/hg/
|
|
237
|
+
- lib/takeltau/hg/list.rb
|
|
238
238
|
- lib/takeltau/hg/pull.rb
|
|
239
239
|
- lib/takeltau/hg/push.rb
|
|
240
240
|
- lib/takeltau/info/cli.rb
|
|
@@ -275,8 +275,8 @@ files:
|
|
|
275
275
|
- lib/takeltau/mutagen/socket/terminate.rb
|
|
276
276
|
- lib/takeltau/mutagen/socket/tidy.rb
|
|
277
277
|
- lib/takeltau/self/cli.rb
|
|
278
|
+
- lib/takeltau/self/commands.rb
|
|
278
279
|
- lib/takeltau/self/config/cli.rb
|
|
279
|
-
- lib/takeltau/self/list.rb
|
|
280
280
|
- lib/takeltau/version
|
|
281
281
|
homepage: https://github.com/takelwerk/takelage-cli
|
|
282
282
|
licenses:
|
data/lib/takeltau/hg/export.rb
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# tau hg export
|
|
4
|
-
module HgExport
|
|
5
|
-
# Backend method for hg export.
|
|
6
|
-
def hg_export
|
|
7
|
-
log.debug 'Export hg repos'
|
|
8
|
-
|
|
9
|
-
return false unless configured? %w[project_root_dir]
|
|
10
|
-
|
|
11
|
-
cmd_hg_export_repos = format(
|
|
12
|
-
config.active['cmd_hg_export_repos'],
|
|
13
|
-
root: config.active['project_root_dir']
|
|
14
|
-
)
|
|
15
|
-
|
|
16
|
-
run cmd_hg_export_repos
|
|
17
|
-
end
|
|
18
|
-
end
|