takeltau 0.35.18 → 0.36.5

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: da6d2c98046fe6dcb56f861b2bca805e9c43a7d9844eb2c231361d7aab48b572
4
- data.tar.gz: f8de160897ebd1d659777938290c7fe28a39ccfaca5458dbac78002ebb42bcd0
3
+ metadata.gz: 7f0384f3e2dd7b515d5943dfc67d59f75c429d56c8fa6473cf2c6fe564181cbf
4
+ data.tar.gz: bd538e579d0f138e832e09d3a5656e345a7d43db364bbbf31bcea6526250f6d4
5
5
  SHA512:
6
- metadata.gz: d9ed98a5b382e65a17f0eeac0f7a91d8563aa892bb0622505f25460c2719d93c3c6d82de7f8d33fcafeff47992df8852617b2db251bba156880ba9205ae9dc2f
7
- data.tar.gz: 743acbb5821b57c211a3647904fe2a90f8d617a9c5b7ec355690d009c4d65e7445f465d9db25eabca69097be636a9722c21bfead6fd23a3706a3cee7aa54510d
6
+ metadata.gz: 36da5dad2130782a8c53bcbdc165b077e85a8d6f7457aff1f64e36f4efcea523a34a010dd63ea44918517e30dfde63f3ea249cc71d8b3e8d9cb39a7f47644112
7
+ data.tar.gz: ce7d8a4eccd384f9239037e43e77d419d10cfe1d56d4234eabcf59014c7b4426578cf91a6a43bba9f623ec93b8d7e2d03f94f19b980d3a7131deab91afe66be3
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)* | [![License](https://img.shields.io/github/license/takelwerk/takelage-doc?color=blueviolet)](https://github.com/takelwerk/takelage-doc/blob/main/LICENSE) |
23
23
  | *[takelage-dev](https://github.com/takelwerk/takelage-dev)* | [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelage/latest?label=hub.docker.com&sort=semver&color=blue)](https://hub.docker.com/r/takelwerk/takelage) |
24
+ | *[takelage-pad](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) |
24
25
  | *[takelage-cli](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) |
25
26
  | *[takelage-var](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/) |
26
27
  | *[takelage-img-takelslim](https://github.com/takelwerk/takelage-img-takelslim)* | [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelslim/latest?label=hub.docker.com&color=blue)](https://hub.docker.com/r/takelwerk/takelslim) |
27
28
  | *[takelage-img-takelbase](https://github.com/takelwerk/takelage-img-takelbase)* | [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelbase/latest?label=hub.docker.com&color=blue)](https://hub.docker.com/r/takelwerk/takelbase) |
28
29
  | *[takelage-img-takelruby](https://github.com/takelwerk/takelage-img-takelruby)* | [![hub.docker.com](https://img.shields.io/docker/v/takelwerk/takelruby/latest?label=hub.docker.com&color=blue)](https://hub.docker.com/r/takelwerk/takelruby) |
30
+ | *[takelage-vbox-takelbase](https://github.com/takelwerk/takelage-vbox-takelbase)* | [![vagrantup.com](https://img.shields.io/badge/vagrantup.com-debian--bullseye-blue)](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)* | [![deploy project](https://img.shields.io/github/workflow/status/takelwerk/takelage-dev/Build,%20test%20and%20deploy%20project?label=deploy%20project)](https://github.com/takelwerk/takelage-dev/actions/workflows/build_test_deploy_project_on_push.yml) | [![test project](https://img.shields.io/github/workflow/status/takelwerk/takelage-dev/Build%20and%20test%20project?label=test%20project)](https://github.com/takelwerk/takelage-dev/actions/workflows/build_test_project_nightly.yml) | [![test roles](https://img.shields.io/github/workflow/status/takelwerk/takelage-dev/Test%20roles?label=test%20roles)](https://github.com/takelwerk/takelage-dev/actions/workflows/build_test_roles_nightly.yml) |
37
+ | *[takelage-pad](https://github.com/takelwerk/takelage-pad)* | [![deploy project](https://img.shields.io/github/workflow/status/takelwerk/takelage-pad/Build,%20test%20and%20deploy%20project%20to%20dockerhub?label=deploy%20project)](https://github.com/takelwerk/takelage-pad/actions/workflows/build_test_deploy_project_on_push.yml) | [![test project](https://img.shields.io/github/workflow/status/takelwerk/takelage-pad/Build%20and%20test%20project?label=test%20project)](https://github.com/takelwerk/takelage-pad/actions/workflows/build_test_project_nightly.yml) | [![test roles](https://img.shields.io/github/workflow/status/takelwerk/takelage-pad/Build%20and%20test%20roles?label=test%20roles)](https://github.com/takelwerk/takelage-pad/actions/workflows/build_test_roles_nightly.yml) | [![deploy vbox](https://img.shields.io/github/workflow/status/takelwerk/takelage-pad/Build%20and%20deploy%20project%20vbox%20to%20vagrantup?label=deploy%20vbox)](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)* | [![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) | [![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) |
36
39
  | *[takelage-var](https://github.com/takelwerk/takelage-var)* | [![deploy project](https://img.shields.io/github/workflow/status/takelwerk/takelage-var/Build,%20test%20and%20deploy%20project?label=deploy%20project)](https://github.com/takelwerk/takelage-var/actions/workflows/build_test_deploy_project_on_push.yml) | [![test project](https://img.shields.io/github/workflow/status/takelwerk/takelage-var/Build%20and%20test%20project?label=test%20project)](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)* | [![deploy project](https://img.shields.io/github/workflow/status/takelwerk/takelage-img-takelslim/Build%20and%20deploy%20takelslim?label=deploy%20project)](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)* | [![deploy project](https://img.shields.io/github/workflow/status/takelwerk/takelage-img-takelbase/Build%20and%20deploy%20takelbase?label=deploy%20project)](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)* | [![deploy project](https://img.shields.io/github/workflow/status/takelwerk/takelage-img-takelruby/Build%20and%20deploy%20takelruby%20latest?label=deploy%20project)](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)* | [![deploy project](https://img.shields.io/github/workflow/status/takelwerk/takelage-vbox-takelbase/Build%20and%20deploy%20project?label=deploy%20project)](https://github.com/takelwerk/takelage-vbox-takelbase/actions/workflows/build_and_deploy_project_nightly.yml) | | | [![deploy vbox](https://img.shields.io/github/workflow/status/takelwerk/takelage-vbox-takelbase/Build%20and%20deploy%20project?label=deploy%20vbox)](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 export](features/cucumber/features/hg/hg.export.feature) | Export hg repos
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 list](features/cucumber/features/self/self.list.feature) | List all commands
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 list | Alias for tau [self list](features/cucumber/features/self/self.list.feature)
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)
@@ -166,7 +168,21 @@ to overwrite defaults like:
166
168
  docker_repo: takelage-mock
167
169
  ```
168
170
 
169
- Furthermore, every external command can be reconfigured.
171
+ - You may prefer to interact with
172
+ [mercurial](https://github.com/takelwerk/takelage-doc/blob/main/doc/tau/hg.md)
173
+ through `tau hg`
174
+ in a different branch than `main` in one project so you may add
175
+ to your *takelage.yml*:
176
+
177
+
178
+ ```yaml
179
+ ---
180
+ git_hg_repo: my_git_hg_branch
181
+ ```
182
+
183
+ Furthermore,
184
+ [every external command](https://github.com/takelwerk/takelage-cli/blob/main/lib/takeltau/default.yml)
185
+ can be reconfigured.
170
186
 
171
187
  ### Project Files
172
188
 
@@ -24,12 +24,13 @@ cmd_git_check_hg_get_git_branch: 'git symbolic-ref HEAD'
24
24
  cmd_git_check_workspace_git_repo: 'git -C %{dir} rev-parse'
25
25
  cmd_git_check_workspace_pwd: 'pwd'
26
26
  cmd_git_lib_git_add_all: 'git add --all'
27
+ cmd_git_lib_git_add_hg_dirs: 'git add \*/.hg/\*'
27
28
  cmd_git_lib_git_commit: 'git commit --message="%{message}"'
28
29
  cmd_git_lib_git_pull_origin: 'git pull origin %{main}'
29
30
  cmd_git_lib_git_push_origin: 'git push origin %{main}'
30
- cmd_hg_export_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 \; hg update'
32
- cmd_hg_push_repos: 'cd %{root}; find * -type d -name ".hg" | parallel -k echo \; cd {//} \; pwd \; hg addremove \; hg commit -m "Update\ hg\ repos" \; hg bookmark -f main \; hg push'
31
+ cmd_hg_list_repos: 'cd %{root}; find * -type d -name ".hg" | parallel --keep-order hg paths default --repository {//} --template "hg\ clone\ {url}\ " \; echo {//}'
32
+ cmd_hg_pull_repos: 'cd %{root}; find * -type d -name ".hg" | parallel --keep-order echo \; cd {//} \; pwd \; hg pull --update'
33
+ cmd_hg_push_repos: 'cd %{root}; find * -type d -name ".hg" | parallel --keep-order echo \; cd {//} \; pwd \; hg commit --addremove --message "Update\ hg\ repos" \; hg bookmarks --force main \; hg push'
33
34
  cmd_info_status_lib_git_name: 'git -C %{root} config user.name'
34
35
  cmd_info_status_lib_git_email: 'git -C %{root} config user.email'
35
36
  cmd_info_status_lib_git_signingkey: 'git -C %{root} config user.signingKey'
@@ -20,6 +20,18 @@ module GitLib
20
20
  _git_lib_git_push_origin_hg
21
21
  end
22
22
 
23
+ # Push git workspace.
24
+ def git_lib_push_hg_dirs
25
+ log.info 'Pushing git workspace'
26
+
27
+ message = 'Update .hg mercurial directories'
28
+
29
+ return false unless _git_lib_git_add_hg_dirs
30
+ return false unless _git_lib_git_commit message
31
+
32
+ _git_lib_git_push_origin_hg
33
+ end
34
+
23
35
  private
24
36
 
25
37
  # git add all.
@@ -34,6 +46,18 @@ module GitLib
34
46
  false
35
47
  end
36
48
 
49
+ # git add hg dirs.
50
+ def _git_lib_git_add_hg_dirs
51
+ log.debug 'Adding all .hg mercurial dirs to git'
52
+
53
+ cmd_git_add_hg_dirs = config.active['cmd_git_lib_git_add_hg_dirs']
54
+
55
+ return true if try cmd_git_add_hg_dirs
56
+
57
+ log.error 'Unable to add all .hg mercurial dirs to git'
58
+ false
59
+ end
60
+
37
61
  # git commit.
38
62
  def _git_lib_git_commit(message)
39
63
  log.debug "Committing to git with message \"#{message}\""
@@ -10,20 +10,20 @@ module Takeltau
10
10
  include GitCheckHg
11
11
  include GitCheckWorkspace
12
12
  include GitLib
13
- include HgExport
13
+ include HgList
14
14
  include HgPull
15
15
  include HgPush
16
16
 
17
17
  #
18
- # hg export
18
+ # hg list
19
19
  #
20
- desc 'export', 'Export hg repos'
20
+ desc 'list', 'List hg repos'
21
21
  long_desc <<-LONGDESC.gsub("\n", "\x5")
22
- Export hg repos
22
+ List hg repos
23
23
  LONGDESC
24
- # Export hg repos.
25
- def export
26
- hgclone = hg_export
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
@@ -3,6 +3,7 @@
3
3
  # tau hg pull
4
4
  module HgPull
5
5
  # Backend method for hg pull.
6
+ # rubocop:disable Metrics/AbcSize
6
7
  # rubocop:disable Metrics/MethodLength
7
8
  def hg_pull
8
9
  log.debug 'Pull hg repos'
@@ -25,9 +26,14 @@ module HgPull
25
26
  end
26
27
 
27
28
  log.info _hg_pull_hg_pull_repos
28
- true
29
+
30
+ return true if git_lib_push_hg_dirs
31
+
32
+ log.error 'Unable to push .hg mercurial directories'
33
+ false
29
34
  end
30
35
  # rubocop:enable Metrics/MethodLength
36
+ # rubocop:enable Metrics/AbcSize
31
37
 
32
38
  private
33
39
 
@@ -7,23 +7,23 @@ module Takeltau
7
7
  # tau self
8
8
  class Self < SubCommandBase
9
9
  include LoggingModule
10
- include SelfList
10
+ include SelfCommands
11
11
 
12
12
  desc 'config [COMMAND]', 'Manage takeltau configuration'
13
13
  subcommand 'config', SelfConfig
14
14
 
15
15
  #
16
- # self list
16
+ # self commands
17
17
  #
18
- desc 'list', 'List all commands'
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 list
24
- list = self_list
25
- exit false if list == false
26
- say list
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 list
4
- module SelfList
5
- # Backend method for config self.
6
- def self_list
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
- tau_list = thor_list.gsub("takeltau\n", '')
30
- tau_list.gsub!("------\n", '')
31
- tau_list.gsub!('thor ', 'tau ')
32
- tau_list.gsub!(/(.*)takeltau:c_l_i:(.*)#(.*)/, '\1\2 #\3')
33
- tau_list.gsub!(/.*COMMAND.*\n/, '')
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.35.18
1
+ 0.36.5
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/export'
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/list'
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 'list', 'Alias for tau self list'
175
- # tau version: {Takeltau::Self#list}
176
- def list
177
- Takeltau::Self.new.list
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.35.18
4
+ version: 0.36.5
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/export.rb
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:
@@ -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