takeltau 0.44.15 → 0.44.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2bf72dba1a70d249a5b716a7e35489df7a27eee29371a2c02e232ad2fb6b825
4
- data.tar.gz: cfe4d2c9092835f058934b24b7ebc231472be53b5e0f710f343a6703f879743b
3
+ metadata.gz: 427008d91f93e07b7dec06006e7dfc9135fcc9377d7f822c49400372b3b23698
4
+ data.tar.gz: f0e3ba0704330cd2d9770016a17ead7b1cbdf4ca2cd54f6814532e4df4753e4a
5
5
  SHA512:
6
- metadata.gz: 7c1379e557d982bf0f4b95a02e06f7f513746177b686b4e55cc0f0d9fcd89a53c031f6de4d07ba9eda568e41d8d1a84783f0063a9d92a30a8f5f5d9fcc89a65a
7
- data.tar.gz: b2371e261a20852f750e9ac2613c971e53d9aa79d88a9af4b224474894f3cb566250980bb7a0c7a9638920f298af701ac4d4aee8dea372183febabb66fa7ebb8
6
+ metadata.gz: 99d28e181b027fd92c982990f2a8b43f29443025374332f36ad5511ebddaab0014c0e3cbc110351e3e03bf43ee5eaf7fefc3bf6b7717fb7ecc9b2e812fde55d1
7
+ data.tar.gz: f5a9c9c6c9679c6d8cc4ab9af269418a5795cbe5a4f88224d2bcac566f9a4015eefae4bd3f18873f5c1ee2debf8ac1b2ee047336bca1fdae01297a87b16f638a
data/README.md CHANGED
@@ -5,11 +5,16 @@ to facilitate the takelage devops workflow.
5
5
  The takelage devops workflow helps devops engineers
6
6
  build, test and deploy os images.
7
7
 
8
- The *takelage-cli* executable *tau* is a
8
+ The *takelage-cli* executable `tau` is a
9
9
  [ruby](https://www.ruby-lang.org/)
10
10
  command line script using the
11
11
  [thor](http://whatisthor.com/) toolkit.
12
12
 
13
+ *takelage-cli* is also the remote control for the
14
+ [takelship](https://github.com/takelwerk/takelship).
15
+
16
+ The *takelage-cli* executable `ship` is a wrapper for `tau ship`.
17
+
13
18
  ## Framework Versions
14
19
 
15
20
  | Project | Artifacts |
@@ -66,97 +71,99 @@ You can list the *tau* commands by running
66
71
  *tau [self commands](features/cucumber/features/self/self.commands.feature)*
67
72
  or *tau commands*:
68
73
 
69
- Command | Description
70
- - |-
71
- tau [completion bash](features/cucumber/features/completion/completion.bash.feature) | Print bash completion code
72
- tau [docker check daemon](features/cucumber/features/docker/docker.check.daemon.feature) | Check if docker daemon is running
73
- tau [docker container check existing](features/cucumber/features/docker/docker.container.check.existing.feature) [CONTAINER] | Check if docker [CONTAINER] is existing
74
- tau [docker container check network](features/cucumber/features/docker/docker.container.check.network.feature) [NETWORK] | Check if docker [NETWORK] is existing
75
- tau [docker container check orphaned](features/cucumber/features/docker/docker.container.check.orphaned.feature) [CONTAINER] | Check if docker [CONTAINER] is orphaned
76
- tau [docker container clean](features/cucumber/features/docker/docker.container.clean.feature) | Remove all docker containers
77
- tau [docker container command](features/cucumber/features/docker/docker.container.command.feature) [CMD] | Run [CMD] in a docker container
78
- tau [docker container daemon](features/cucumber/features/docker/docker.container.daemon.feature) | Run docker container in daemon mode
79
- tau [docker container list](features/cucumber/features/docker/docker.container.list.feature) | List docker containers
80
- tau [docker container login](features/cucumber/features/docker/docker.container.login.feature) | Log in to latest local docker container
81
- tau [docker container prune](features/cucumber/features/docker/docker.container.prune.feature) | Remove orphaned docker containers
82
- tau [docker image tag check](features/cucumber/features/docker/docker.image.tag.check.feature) [TAG] | Check if local docker image [TAG] exists
83
- tau [docker image tag latest](features/cucumber/features/docker/docker.image.tag.latest.feature) | Print latest local docker image tag
84
- tau [docker image tag list](features/cucumber/features/docker/docker.image.tag.list.feature) | Print local docker image tags
85
- tau [docker image update](features/cucumber/features/docker/docker.image.update.feature) | Get latest remote docker container
86
- tau [git check clean](features/cucumber/features/git/git.check.clean.feature) | Check if the git workspace is clean
87
- tau [git check hg](features/cucumber/features/git/git.check.hg.feature) | Check if we are on the git hg branch
88
- tau [git check workspace](features/cucumber/features/git/git.check.workspace.feature) | Check if a git workspace exists
89
- tau [hg list](features/cucumber/features/hg/hg.list.feature) | List hg repos
90
- tau [hg pull](features/cucumber/features/hg/hg.pull.feature) | Pull hg repos
91
- tau [hg push](features/cucumber/features/hg/hg.push.feature) | Push hg repos
92
- tau [info project active](features/cucumber/features/info/info.project.active.feature) | Print active project info
93
- tau [info project dir](features/cucumber/features/info/info.project.dir.feature) | Print project root directory
94
- tau [info project main](features/cucumber/features/info/info.project.main.feature) | Print main project info
95
- tau [info project private](features/cucumber/features/info/info.project.private.feature) | Print private project info
96
- tau [info status bar](features/cucumber/features/info/info.status.bar.feature) | Print status bar
97
- tau [info status arch](features/cucumber/features/info/info.status.arch.feature) | Check arch status
98
- tau [info status git](features/cucumber/features/info/info.status.git.feature) | Check git status
99
- tau [info status gopass](features/cucumber/features/info/info.status.gopass.feature) | Check gopass status
100
- tau [info status gpg](features/cucumber/features/info/info.status.gpg.feature) | Check gpg status
101
- tau [info status hg](features/cucumber/features/info/info.status.hg.feature) | Check hg status
102
- tau [info status mutagen](features/cucumber/features/info/info.status.mutagen.feature) | Check mutagen status
103
- tau [info status ssh](features/cucumber/features/info/info.status.ssh.feature) | Check ssh status
104
- tau [init packer docker](features/cucumber/features/init/init.packer.docker.feature) | Initialize packer project for docker images
105
- tau [init takelage rake](features/cucumber/features/init/init.takelage.rake.feature) | Initialize takelage rake project
106
- tau [mutagen check daemon](features/cucumber/features/mutagen/mutagen.check.daemon.feature)) | Check if mutagen host conenction is available
107
- tau [mutagen socket check](features/cucumber/features/mutagen/mutagen.socket.check.feature) [SOCKET] | Check if mutagen [SOCKET] exists
108
- tau [mutagen socket create](features/cucumber/features/mutagen/mutagen.socket.create.feature) [NAME] [IN] [OUT] | Create a mutagen socket [NAME] from [IN] to [OUT] of the container
109
- tau [mutagen socket list](features/cucumber/features/mutagen/mutagen.socket.list.feature) | List mutagen sockets
110
- tau [mutagen socket terminate](features/cucumber/features/mutagen/mutagen.socket.terminate.feature) [SOCKET] | Terminate a mutagen [SOCKET]
111
- tau [mutagen socket tidy](features/cucumber/features/mutagen/mutagen.socket.tidy.feature) | Remove mutagen daemon files
112
- tau [self commands](features/cucumber/features/self/self.commands.feature) | List all commands
113
- tau [self config active](features/cucumber/features/self/self.config.active.feature) | Print active takelage configuration
114
- tau [self config default](features/cucumber/features/self/self.config.default.feature) | Print takelage default configuration
115
- tau [self config home](features/cucumber/features/self/self.config.home.feature) | Print takelage home config file configuration
116
- tau [self config project](features/cucumber/features/self/self.config.project.feature) | Print takelage project config file configuration
117
- tau [self version](features/cucumber/features/self/self.version.feature) | Print tau semantic version number
118
- tau [ship completion bash](features/cucumber/features/ship/completion/completion.bash.feature) | Print bash completion code for ship subcommand
119
- tau [ship container check existing](features/cucumber/features/ship/container/ship.container.check.existing.feature) | Check if a takelship is existing
120
- tau [ship container clean](features/cucumber/features/ship/container/ship.container.clean.feature) | Stop all takelships
121
- tau [ship container command](features/cucumber/features/ship/container/ship.container.command.feature) [COMMAND] | Run a [COMMAND] in a takelship container
122
- tau [ship container list](features/cucumber/features/ship/container/ship.container.list.feature) | List takelships
123
- tau [ship container login](features/cucumber/features/ship/container/ship.container.login.feature) | Log in to a takelship
124
- tau [ship container logs](features/cucumber/features/ship/container/ship.container.logs.feature) | Print the takelship logs
125
- tau [ship container podman](features/cucumber/features/ship/container/ship.container.podman.feature) [COMMAND] | Run a podman [COMMAND] in a takelship
126
- tau [ship container stop](features/cucumber/features/ship/container/ship.container.stop.feature) | Stop a takelship
127
- tau [ship container sudo](features/cucumber/features/ship/container/ship.container.sudo.feature) [COMMAND] | Run a sudo [COMMAND] in a takelship
128
- tau [ship container update](features/cucumber/features/ship/container/ship.container.update.feature) | Update takelship image
129
- tau [ship info takelconfig](features/cucumber/features/ship/info/ship.info.takelconfig.feature) | Print takelage config
130
- tau [ship info takelship](features/cucumber/features/ship/info/ship.info.takelship.feature) | Print takelship info
131
- tau [ship project create](features/cucumber/features/ship/project/ship.project.create.feature) [PROJECT] | Create a takelship [PROJECT]
132
- tau [ship project list](features/cucumber/features/ship/project/ship.project.list.feature) | List takelship projects
133
- tau [ship project start](features/cucumber/features/ship/project/ship.project.start.feature) [PROJECT] | Start a takelship [PROJECT]
134
- tau [ship project stop](features/cucumber/features/ship/project/ship.project.stop.feature) | Stop a takelship project
135
- tau [ship project update](features/cucumber/features/ship/project/ship.project.create.feature) [PROJECT] | Update a takelship [PROJECT]
136
- tau ship board | Alias for tau [ship container login](features/cucumber/features/ship/container/ship.container.login.feature)
137
- tau ship command [COMMAND] | Alias for tau [ship container command](features/cucumber/features/ship/container/ship.container.command.feature)
138
- tau ship list | Alias for tau [ship container list](features/cucumber/features/ship/container/ship.container.list.feature)
139
- tau ship login | Alias for tau [ship container login](features/cucumber/features/ship/container/ship.container.login.feature)
140
- tau ship logs | Alias for [tau ship container logs](features/cucumber/features/ship/container/ship.container.logs.feature)
141
- tau ship ls | Alias for tau [ship container list](features/cucumber/features/ship/container/ship.container.list.feature)
142
- tau ship podman [COMMAND] | Alias for tau [ship container podman](features/cucumber/features/ship/container/ship.container.podman.feature)
143
- tau ship sail [PROJECT] | Alias for tau [ship project start](features/cucumber/features/ship/project/ship.project.start.feature)
144
- tau ship start [PROJECT] | Alias for tau [ship project start](features/cucumber/features/ship/project/ship.project.start.feature)
145
- tau ship stop | Alias for tau [ship project stop](features/cucumber/features/ship/project/ship.project.stop.feature)
146
- tau ship sudo [COMMAND] | Alias for tau [ship container sudo](features/cucumber/features/ship/container/ship.container.sudo.feature)
147
- tau ship wreck | Alias for tau [ship project stop](features/cucumber/features/ship/project/ship.project.stop.feature)
148
- tau ship update | Alias for tau [ship container update](features/cucumber/features/ship/container/ship.container.update.feature)
149
- tau clean | Alias for tau [docker container clean](features/cucumber/features/docker/docker.container.clean.feature)
150
- tau commands | Alias for tau [self commands](features/cucumber/features/self/self.commands.feature)
151
- tau config | Alias for tau [self config active](features/cucumber/features/self/self.config.active.feature)
152
- tau list | Alias for tau [docker container list](features/cucumber/features/docker/docker.container.list.feature)
153
- tau ls | Alias for tau [docker container list](features/cucumber/features/docker/docker.container.list.feature)
154
- tau login | Alias for tau [docker container login](features/cucumber/features/docker/docker.container.login.feature)
155
- tau project | Alias for tau [info project active](features/cucumber/features/info/info.project.active.feature)
156
- tau prune | Alias for tau [docker container prune](features/cucumber/features/docker/docker.container.prune.feature)
157
- tau status | Alias for tau [docker info status bar](features/cucumber/features/info/info.status.bar.feature)
158
- tau update | Alias for tau [docker image update](features/cucumber/features/docker/docker.image.update.feature)
159
- tau version | Alias for tau [self version](features/cucumber/features/self/self.version.feature)
74
+ | Command | Description |
75
+ | - |- |
76
+ | tau [completion bash](features/cucumber/features/completion/completion.bash.feature) | Print bash completion code |
77
+ | tau [docker check daemon](features/cucumber/features/docker/docker.check.daemon.feature) | Check if docker daemon is running |
78
+ | tau [docker container check existing](features/cucumber/features/docker/docker.container.check.existing.feature) [CONTAINER] | Check if docker [CONTAINER] is existing |
79
+ | tau [docker container check network](features/cucumber/features/docker/docker.container.check.network.feature) [NETWORK] | Check if docker [NETWORK] is existing |
80
+ | tau [docker container check orphaned](features/cucumber/features/docker/docker.container.check.orphaned.feature) [CONTAINER] | Check if docker [CONTAINER] is orphaned |
81
+ | tau [docker container clean](features/cucumber/features/docker/docker.container.clean.feature) | Remove all docker containers |
82
+ | tau [docker container command](features/cucumber/features/docker/docker.container.command.feature) [CMD] | Run [CMD] in a docker container |
83
+ | tau [docker container daemon](features/cucumber/features/docker/docker.container.daemon.feature) | Run docker container in daemon mode |
84
+ | tau [docker container list](features/cucumber/features/docker/docker.container.list.feature) | List docker containers |
85
+ | tau [docker container login](features/cucumber/features/docker/docker.container.login.feature) | Log in to latest local docker container |
86
+ | tau [docker container prune](features/cucumber/features/docker/docker.container.prune.feature) | Remove orphaned docker containers |
87
+ | tau [docker image tag check](features/cucumber/features/docker/docker.image.tag.check.feature) [TAG] | Check if local docker image [TAG] exists |
88
+ | tau [docker image tag latest](features/cucumber/features/docker/docker.image.tag.latest.feature) | Print latest local docker image tag |
89
+ | tau [docker image tag list](features/cucumber/features/docker/docker.image.tag.list.feature) | Print local docker image tags |
90
+ | tau [docker image update](features/cucumber/features/docker/docker.image.update.feature) | Get latest remote docker container |
91
+ | tau [git check clean](features/cucumber/features/git/git.check.clean.feature) | Check if the git workspace is clean |
92
+ | tau [git check hg](features/cucumber/features/git/git.check.hg.feature) | Check if we are on the git hg branch |
93
+ | tau [git check workspace](features/cucumber/features/git/git.check.workspace.feature) | Check if a git workspace exists |
94
+ | tau [hg list](features/cucumber/features/hg/hg.list.feature) | List hg repos |
95
+ | tau [hg pull](features/cucumber/features/hg/hg.pull.feature) | Pull hg repos |
96
+ | tau [hg push](features/cucumber/features/hg/hg.push.feature) | Push hg repos |
97
+ | tau [info project active](features/cucumber/features/info/info.project.active.feature) | Print active project info |
98
+ | tau [info project dir](features/cucumber/features/info/info.project.dir.feature) | Print project root directory |
99
+ | tau [info project main](features/cucumber/features/info/info.project.main.feature) | Print main project info |
100
+ | tau [info project private](features/cucumber/features/info/info.project.private.feature) | Print private project info |
101
+ | tau [info status bar](features/cucumber/features/info/info.status.bar.feature) | Print status bar |
102
+ | tau [info status arch](features/cucumber/features/info/info.status.arch.feature) | Check arch status |
103
+ | tau [info status git](features/cucumber/features/info/info.status.git.feature) | Check git status |
104
+ | tau [info status gopass](features/cucumber/features/info/info.status.gopass.feature) | Check gopass status |
105
+ | tau [info status gpg](features/cucumber/features/info/info.status.gpg.feature) | Check gpg status |
106
+ | tau [info status hg](features/cucumber/features/info/info.status.hg.feature) | Check hg status |
107
+ | tau [info status mutagen](features/cucumber/features/info/info.status.mutagen.feature) | Check mutagen status |
108
+ | tau [info status ssh](features/cucumber/features/info/info.status.ssh.feature) | Check ssh status |
109
+ | tau [init packer docker](features/cucumber/features/init/init.packer.docker.feature) | Initialize packer project for docker images |
110
+ | tau [init takelage rake](features/cucumber/features/init/init.takelage.rake.feature) | Initialize takelage rake project |
111
+ | tau [mutagen check daemon](features/cucumber/features/mutagen/mutagen.check.daemon.feature)) | Check if mutagen host conenction is available |
112
+ | tau [mutagen socket check](features/cucumber/features/mutagen/mutagen.socket.check.feature) [SOCKET] | Check if mutagen [SOCKET] exists |
113
+ | tau [mutagen socket create](features/cucumber/features/mutagen/mutagen.socket.create.feature) [NAME] [IN] [OUT] | Create a mutagen socket [NAME] from [IN] to [OUT] of the container |
114
+ | tau [mutagen socket list](features/cucumber/features/mutagen/mutagen.socket.list.feature) | List mutagen sockets |
115
+ | tau [mutagen socket terminate](features/cucumber/features/mutagen/mutagen.socket.terminate.feature) [SOCKET] | Terminate a mutagen [SOCKET] |
116
+ | tau [mutagen socket tidy](features/cucumber/features/mutagen/mutagen.socket.tidy.feature) | Remove mutagen daemon files |
117
+ | tau [self commands](features/cucumber/features/self/self.commands.feature) | List all commands |
118
+ | tau [self config active](features/cucumber/features/self/self.config.active.feature) | Print active takelage configuration |
119
+ | tau [self config default](features/cucumber/features/self/self.config.default.feature) | Print takelage default configuration |
120
+ | tau [self config home](features/cucumber/features/self/self.config.home.feature) | Print takelage home config file configuration |
121
+ | tau [self config project](features/cucumber/features/self/self.config.project.feature) | Print takelage project config file configuration |
122
+ | tau [self version](features/cucumber/features/self/self.version.feature) | Print tau semantic version number |
123
+ | tau [ship completion bash](features/cucumber/features/ship/completion/completion.bash.feature) | Print bash completion code for ship subcommand |
124
+ | tau [ship container check existing](features/cucumber/features/ship/container/ship.container.check.existing.feature) | Check if a takelship is existing |
125
+ | tau [ship container clean](features/cucumber/features/ship/container/ship.container.clean.feature) | Stop all takelships |
126
+ | tau [ship container command](features/cucumber/features/ship/container/ship.container.command.feature) [COMMAND] | Run a [COMMAND] in a takelship container |
127
+ | tau [ship container list](features/cucumber/features/ship/container/ship.container.list.feature) | List takelships |
128
+ | tau [ship container login](features/cucumber/features/ship/container/ship.container.login.feature) | Log in to a takelship |
129
+ | tau [ship container logs](features/cucumber/features/ship/container/ship.container.logs.feature) | Print the takelship logs |
130
+ | tau [ship container podman](features/cucumber/features/ship/container/ship.container.podman.feature) [COMMAND] | Run a podman [COMMAND] in a takelship |
131
+ | tau [ship container stop](features/cucumber/features/ship/container/ship.container.stop.feature) | Stop a takelship |
132
+ | tau [ship container sudo](features/cucumber/features/ship/container/ship.container.sudo.feature) [COMMAND] | Run a sudo [COMMAND] in a takelship |
133
+ | tau [ship container update](features/cucumber/features/ship/container/ship.container.update.feature) | Update takelship image |
134
+ | tau [ship info takelconfig](features/cucumber/features/ship/info/ship.info.takelconfig.feature) | Print takelage config |
135
+ | tau [ship info takelship](features/cucumber/features/ship/info/ship.info.takelship.feature) | Print takelship info |
136
+ | tau [ship project create](features/cucumber/features/ship/project/ship.project.create.feature) [PROJECT] | Create a takelship [PROJECT] |
137
+ | tau [ship project list](features/cucumber/features/ship/project/ship.project.list.feature) | List takelship projects |
138
+ | tau [ship project restart](features/cucumber/features/ship/project/ship.project.restart.feature) [PROJECT] | Restart a takelship [PROJECT] |
139
+ | tau [ship project start](features/cucumber/features/ship/project/ship.project.start.feature) [PROJECT] | Start a takelship [PROJECT] |
140
+ | tau [ship project stop](features/cucumber/features/ship/project/ship.project.stop.feature) | Stop a takelship project |
141
+ | tau [ship project update](features/cucumber/features/ship/project/ship.project.create.feature) [PROJECT] | Update a takelship [PROJECT] |
142
+ | tau ship board | Alias for tau [ship container login](features/cucumber/features/ship/container/ship.container.login.feature) |
143
+ | tau ship command [COMMAND] | Alias for tau [ship container command](features/cucumber/features/ship/container/ship.container.command.feature) |
144
+ | tau ship list | Alias for tau [ship container list](features/cucumber/features/ship/container/ship.container.list.feature) |
145
+ | tau ship login | Alias for tau [ship container login](features/cucumber/features/ship/container/ship.container.login.feature) |
146
+ | tau ship logs | Alias for tau [ship container logs](features/cucumber/features/ship/container/ship.container.logs.feature) |
147
+ | tau ship ls | Alias for tau [ship container list](features/cucumber/features/ship/container/ship.container.list.feature) |
148
+ | tau ship podman [COMMAND] | Alias for tau [ship container podman](features/cucumber/features/ship/container/ship.container.podman.feature) |
149
+ | tau ship sail [PROJECT] | Alias for tau [ship project start](features/cucumber/features/ship/project/ship.project.start.feature) |
150
+ | tau ship restart [PROJECT] | Alias for tau [ship project restart](features/cucumber/features/ship/project/ship.project.restart.feature) |
151
+ | tau ship start [PROJECT] | Alias for tau [ship project start](features/cucumber/features/ship/project/ship.project.start.feature) |
152
+ | tau ship stop | Alias for tau [ship project stop](features/cucumber/features/ship/project/ship.project.stop.feature) |
153
+ | tau ship sudo [COMMAND] | Alias for tau [ship container sudo](features/cucumber/features/ship/container/ship.container.sudo.feature) |
154
+ | tau ship wreck | Alias for tau [ship project stop](features/cucumber/features/ship/project/ship.project.stop.feature) |
155
+ | tau ship update | Alias for tau [ship container update](features/cucumber/features/ship/container/ship.container.update.feature) |
156
+ | tau clean | Alias for tau [docker container clean](features/cucumber/features/docker/docker.container.clean.feature) |
157
+ | tau commands | Alias for tau [self commands](features/cucumber/features/self/self.commands.feature) |
158
+ | tau config | Alias for tau [self config active](features/cucumber/features/self/self.config.active.feature) |
159
+ | tau list | Alias for tau [docker container list](features/cucumber/features/docker/docker.container.list.feature) |
160
+ | tau ls | Alias for tau [docker container list](features/cucumber/features/docker/docker.container.list.feature) |
161
+ | tau login | Alias for tau [docker container login](features/cucumber/features/docker/docker.container.login.feature) |
162
+ | tau project | Alias for tau [info project active](features/cucumber/features/info/info.project.active.feature) |
163
+ | tau prune | Alias for tau [docker container prune](features/cucumber/features/docker/docker.container.prune.feature) |
164
+ | tau status | Alias for tau [docker info status bar](features/cucumber/features/info/info.status.bar.feature) |
165
+ | tau update | Alias for tau [docker image update](features/cucumber/features/docker/docker.image.update.feature) |
166
+ | tau version | Alias for tau [self version](features/cucumber/features/self/self.version.feature) |
160
167
 
161
168
  **Warning: *tau update* will call *docker image prune* and remove all dangling images!**
162
169
 
@@ -11,7 +11,7 @@ module Takeltau
11
11
 
12
12
  def initialize(args = [], local_options = {}, configuration = {})
13
13
  # initialize thor parent class
14
- super args, local_options, configuration
14
+ super
15
15
 
16
16
  log.debug 'Check docker dameon for docker subcommand'
17
17
  exit false unless docker_check_daemon
@@ -30,7 +30,7 @@ module Takeltau
30
30
  # rubocop:disable Metrics/AbcSize
31
31
  def initialize(args = [], local_options = {}, configuration = {})
32
32
  # initialize thor parent class
33
- super args, local_options, configuration
33
+ super
34
34
 
35
35
  @docker_user = config.active['docker_user']
36
36
  @docker_repo = config.active['docker_repo']
@@ -96,7 +96,7 @@ module DockerContainerLib
96
96
  entrypoint_options: config.active['docker_entrypoint_options'],
97
97
  extra: config.active['docker_entrypoint_extra'],
98
98
  gid: Etc.getpwnam(@username).gid,
99
- homedir: ENV['HOME'] || '/tmp',
99
+ homedir: Dir.home || '/tmp',
100
100
  image: image,
101
101
  shmsize: config.active['docker_shm_size'],
102
102
  timezone: 'Europe/Berlin',
@@ -187,7 +187,7 @@ module DockerContainerLib
187
187
  # Get the mounted takelage directory
188
188
  def _docker_container_lib_get_mounted_dir(name, destination, docker)
189
189
  log.debug 'Getting mounted directory from ' \
190
- "container \"#{name}\""
190
+ "container \"#{name}\""
191
191
 
192
192
  cmd_get_mounted_dir = format(
193
193
  config.active['cmd_docker_container_get_mounted_dir'],
@@ -12,7 +12,7 @@ module Takeltau
12
12
  # Initialize takelage docker image
13
13
  def initialize(args = [], local_options = {}, configuration = {})
14
14
  # initialize thor parent class
15
- super args, local_options, configuration
15
+ super
16
16
 
17
17
  @docker_user = config.active['docker_user']
18
18
  @docker_repo = config.active['docker_repo']
@@ -15,7 +15,7 @@ module Takeltau
15
15
  # Initialize takelage docker image tag check
16
16
  def initialize(args = [], local_options = {}, configuration = {})
17
17
  # initialize thor parent class
18
- super args, local_options, configuration
18
+ super
19
19
 
20
20
  @docker_user = config.active['docker_user']
21
21
  @docker_repo = config.active['docker_repo']
@@ -25,12 +25,12 @@ module Takeltau
25
25
  # Initialize info status
26
26
  def initialize(args = [], local_options = {}, configuration = {})
27
27
  # initialize thor parent class
28
- super args, local_options, configuration
28
+ super
29
29
 
30
30
  @workdir = Dir.getwd
31
31
 
32
32
  inside = _docker_container_lib_check_matrjoschka
33
- @hostname = inside ? ENV['HOSTNAME'] : _docker_container_lib_hostname
33
+ @hostname = inside ? ENV.fetch('HOSTNAME', nil) : _docker_container_lib_hostname
34
34
  @hostlabel = "hostname=#{@hostname}"
35
35
  end
36
36
 
@@ -7,7 +7,7 @@ module InfoStatusSSH
7
7
  def info_status_ssh
8
8
  log.debug 'Check ssh status'
9
9
 
10
- ssh_auth_sock = ENV['SSH_AUTH_SOCK']
10
+ ssh_auth_sock = ENV.fetch('SSH_AUTH_SOCK', nil)
11
11
  gpg_ssh_socket = _info_status_ssh_socket_path.chomp
12
12
 
13
13
  unless ssh_auth_sock == gpg_ssh_socket
@@ -19,7 +19,7 @@ module Takeltau
19
19
  # rubocop:disable Metrics/MethodLength
20
20
  def initialize(args = [], local_options = {}, configuration = {})
21
21
  # initialize thor parent class
22
- super args, local_options, configuration
22
+ super
23
23
 
24
24
  @gitignore = {
25
25
  name: '.gitignore',
@@ -18,7 +18,7 @@ module Takeltau
18
18
  # Define templates
19
19
  def initialize(args = [], local_options = {}, configuration = {})
20
20
  # initialize thor parent class
21
- super args, local_options, configuration
21
+ super
22
22
 
23
23
  @gitignore = {
24
24
  name: '.gitignore',
@@ -40,8 +40,8 @@ module LoggingModule
40
40
  if %w[FATAL ERROR WARN INFO DEBUG].include? loglevel
41
41
  loglevel
42
42
  else
43
- TakeltauLogger.instance.logger.error 'The parameter "loglevel"' \
44
- ' must be one of FATAL, ERROR, WARN, INFO, DEBUG'
43
+ TakeltauLogger.instance.logger.error 'The parameter "loglevel" ' \
44
+ 'must be one of FATAL, ERROR, WARN, INFO, DEBUG'
45
45
  TakeltauLogger.instance.logger.info 'Using loglevel INFO'
46
46
  Logger::INFO
47
47
  end
@@ -39,7 +39,7 @@ module ProjectModule
39
39
  def _project_read_main
40
40
  dir = TakeltauProject.instance.config.active['project_root_dir']
41
41
  main_file = "#{dir}/" \
42
- "#{TakeltauProject.instance.config.active['info_project_main']}"
42
+ "#{TakeltauProject.instance.config.active['info_project_main']}"
43
43
 
44
44
  return {} unless File.exist? main_file
45
45
 
@@ -50,7 +50,7 @@ module ProjectModule
50
50
  def _project_read_private
51
51
  dir = TakeltauProject.instance.config.active['project_root_dir']
52
52
  private_file = "#{dir}/" \
53
- "#{TakeltauProject.instance.config.active['info_project_private']}"
53
+ "#{TakeltauProject.instance.config.active['info_project_private']}"
54
54
 
55
55
  return {} unless File.exist? private_file
56
56
 
@@ -4,6 +4,7 @@
4
4
  class SubCommandBase < Thor
5
5
  # Set the subcommand banner.
6
6
  # rubocop:disable Style/OptionalBooleanParameter
7
+ # rubocop:disable Lint/EmptyBlock
7
8
  def self.banner(command, _namespace = nil, _subcommand = false)
8
9
  subcommand = subcommand_prefix
9
10
  name = $PROGRAM_NAME
@@ -12,6 +13,7 @@ class SubCommandBase < Thor
12
13
  name = File.basename(name)
13
14
  [name, subcommand, command.usage].reject(&:empty?).join(' ')
14
15
  end
16
+ # rubocop:enable Lint/EmptyBlock
15
17
  # rubocop:enable Style/OptionalBooleanParameter
16
18
 
17
19
  # Set the subcommand prefix.
@@ -191,7 +191,7 @@ module SystemModule
191
191
  rescue StandardError => e
192
192
  log.debug e.class
193
193
  log.debug "Invalid ERB in YAML file \"#{file}\". " \
194
- "#{e.class}: \"#{e.message}\""
194
+ "#{e.class}: \"#{e.message}\""
195
195
  return false
196
196
  end
197
197
  true
@@ -16,12 +16,12 @@ module Takeltau
16
16
  # Initialize mutagen check
17
17
  def initialize(args = [], local_options = {}, configuration = {})
18
18
  # initialize thor parent class
19
- super args, local_options, configuration
19
+ super
20
20
 
21
21
  @workdir = Dir.getwd
22
22
 
23
23
  inside = _docker_container_lib_check_matrjoschka
24
- @hostname = inside ? ENV['HOSTNAME'] : _docker_container_lib_hostname
24
+ @hostname = inside ? ENV.fetch('HOSTNAME', nil) : _docker_container_lib_hostname
25
25
  @hostlabel = "hostname=#{@hostname}"
26
26
  end
27
27
 
@@ -53,7 +53,7 @@ module MutagenCheckDaemon
53
53
 
54
54
  unless stdout.include? 'Status: Forwarding'
55
55
  log.debug 'The mutagen forward connection to the host ' \
56
- 'is not forwarding connections'
56
+ 'is not forwarding connections'
57
57
  return false
58
58
  end
59
59
 
@@ -12,7 +12,7 @@ module Takeltau
12
12
 
13
13
  def initialize(args = [], local_options = {}, configuration = {})
14
14
  # initialize thor parent class
15
- super args, local_options, configuration
15
+ super
16
16
 
17
17
  log.debug 'Check docker dameon for mutagen subcommand'
18
18
  exit false unless docker_check_daemon
@@ -25,14 +25,14 @@ module Takeltau
25
25
  # Initialize mutagen socket
26
26
  def initialize(args = [], local_options = {}, configuration = {})
27
27
  # initialize thor parent class
28
- super args, local_options, configuration
28
+ super
29
29
 
30
30
  @docker_repo = config.active['docker_repo']
31
31
  @username = ENV['USER'] || 'noname'
32
32
  @workdir = Dir.getwd
33
33
 
34
34
  inside = _docker_container_lib_check_matrjoschka
35
- @hostname = inside ? ENV['HOSTNAME'] : _docker_container_lib_hostname
35
+ @hostname = inside ? ENV.fetch('HOSTNAME', nil) : _docker_container_lib_hostname
36
36
 
37
37
  @hostlabel = "hostname=#{@hostname}"
38
38
  @takellabel = config.active['mutagen_socket_takelage_label']
@@ -7,7 +7,7 @@ module MutagenSocketCreate
7
7
  # See DockerContainerLib::_docker_container_lib_hostname
8
8
  socketname = "#{@hostname[-11..]}-#{name}"
9
9
  log.debug "Create the mutagen socket \"#{socketname}\" in the container " \
10
- "at \"#{containersock}\" pointing to the host at \"#{hostsock}\""
10
+ "at \"#{containersock}\" pointing to the host at \"#{hostsock}\""
11
11
 
12
12
  return false if mutagen_socket_check socketname
13
13
 
@@ -7,7 +7,7 @@ module MutagenSocketDocker
7
7
  # See DockerContainerLib::_docker_container_lib_hostname
8
8
  socketname = "#{@hostname[-11..]}-docker"
9
9
  log.debug "Create the mutagen docker socket \"#{socketname}\" in the container " \
10
- "pointing to the host at \"#{hostsock}\""
10
+ "pointing to the host at \"#{hostsock}\""
11
11
 
12
12
  return false if mutagen_socket_check socketname
13
13
 
@@ -16,9 +16,9 @@ module SelfCommands
16
16
 
17
17
  # use thor list to get the list of commands and subcommands
18
18
  cmd_thor_list = "bash -c '" \
19
- "cd #{thorfile_dir} && " \
20
- 'thor list' \
21
- "'"
19
+ "cd #{thorfile_dir} && " \
20
+ 'thor list' \
21
+ "'"
22
22
 
23
23
  # call thor list command
24
24
  `#{cmd_thor_list}`
@@ -11,7 +11,7 @@ module Takeltau
11
11
 
12
12
  def initialize(args = [], local_options = {}, configuration = {})
13
13
  # initialize thor parent class
14
- super args, local_options, configuration
14
+ super
15
15
 
16
16
  log.debug 'Check docker dameon for ship subcommand'
17
17
  exit false unless docker_check_daemon 'cmd_ship_docker', 'cmd_ship_docker_check'
@@ -106,6 +106,17 @@ module Takeltau
106
106
  Takeltau::ShipContainer.new.podman(*args)
107
107
  end
108
108
 
109
+ desc 'restart [PROJECT]', 'Restart takelship [PROJECT]'
110
+ long_desc <<-LONGDESC.gsub("\n", "\x5")
111
+ Restart a takelship and run project [PROJECT] in it.
112
+ Alias for ship project restart which is an
113
+ alias for ship project stop and then ship project start.
114
+ LONGDESC
115
+ # ship restart: {Takeltau::ShipProject#restart}
116
+ def restart(project = 'default')
117
+ Takeltau::ShipProject.new.restart project
118
+ end
119
+
109
120
  desc 'sudo [COMMAND]', 'Run a sudo [COMMAND] in a takelship'
110
121
  long_desc <<-LONGDESC.gsub("\n", "\x5")
111
122
  Run a command as root in a takelship container.
@@ -27,9 +27,8 @@ module ShipCompletionBash
27
27
  functions =
28
28
  completion
29
29
  .split(/_tau[^_]*/)
30
- .select { |f| f =~ /_ship/ }
31
- .reject { |f| f =~ /_ship\n/ }
32
- .reject { |f| f.include? 'help ()' }
33
- functions.join('')
30
+ .grep(/_ship/)
31
+ .grep_v(/_ship\n/)
32
+ functions.join
34
33
  end
35
34
  end
@@ -117,7 +117,7 @@ module ShipContainerLib
117
117
  def _ship_container_lib_get_mounted_dir
118
118
  ship_hostname = _ship_container_lib_ship_hostname
119
119
  log.debug 'Getting mounted directory from ' \
120
- "takelship container \"#{ship_hostname}\""
120
+ "takelship container \"#{ship_hostname}\""
121
121
 
122
122
  cmd_get_mounted_dir = format(
123
123
  config.active['cmd_docker_container_get_mounted_dir'],
@@ -41,6 +41,20 @@ module Takeltau
41
41
  ship_project_list
42
42
  end
43
43
 
44
+ #
45
+ # ship project restart
46
+ #
47
+ desc 'restart [PROJECT]', 'Restart takelship [PROJECT]'
48
+ long_desc <<-LONGDESC.gsub("\n", "\x5")
49
+ Restart a takelship and run the project [PROJECT] in it.
50
+ Alias for ship project stop and ship project start.
51
+ LONGDESC
52
+ # ship restart: {Takeltau::ShipProject#restart}
53
+ def restart(project = 'default')
54
+ Takeltau::ShipProject.new.stop
55
+ Takeltau::ShipProject.new.start project
56
+ end
57
+
44
58
  #
45
59
  # ship project start
46
60
  #
data/lib/takeltau/version CHANGED
@@ -1 +1 @@
1
- 0.44.15
1
+ 0.44.18
data/lib/takeltau.rb CHANGED
@@ -138,7 +138,7 @@ module Takeltau
138
138
  # Initialize takelage cli.
139
139
  def initialize(args = [], local_options = {}, configuration = {})
140
140
  # Initialize thor parent class
141
- super args, local_options, configuration
141
+ super
142
142
 
143
143
  # Initialize global singleton log
144
144
  initialize_logging options[:loglevel].to_s.upcase
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.44.15
4
+ version: 0.44.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takelwerk
@@ -314,6 +314,7 @@ licenses:
314
314
  - GPL-3.0
315
315
  metadata:
316
316
  yard.run: yard
317
+ rubygems_mfa_required: 'true'
317
318
  post_install_message:
318
319
  rdoc_options: []
319
320
  require_paths: