takeltau 0.44.37 → 0.44.41
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 +6 -3
- data/lib/takeltau/default.yml +1 -0
- data/lib/takeltau/lib/system.rb +0 -2
- data/lib/takeltau/self/config/cli.rb +17 -18
- data/lib/takeltau/ship/cli.rb +9 -0
- data/lib/takeltau/ship/info/cli.rb +12 -0
- data/lib/takeltau/ship/project/cli.rb +7 -0
- data/lib/takeltau/version +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ba68a908eb9fc2892702047e2bab32fed4f094ce05a78132dffebcafe3b06af
|
4
|
+
data.tar.gz: 982ac70933014a8be6b08348c1e62d244fa43b22e04f1cd951c017c761c931c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e66a3149146dcd4a3a892984ab6fb67a7ef0062a7ac7a0fc164af4f80ea1438ec4c46ba0fd51042d4bce264b0f3197c056ee7ad8c4b80010617e6258ebdc664a
|
7
|
+
data.tar.gz: a62b1f02afae211d2ce17272c8d5a9daea8d312885d80310814e3151f3869dbf8a447a50d219af4aa083c27dff72cbe9c7ca0534ef4652a5d66e333da02c2ee2
|
data/README.md
CHANGED
@@ -119,6 +119,7 @@ or *tau commands*:
|
|
119
119
|
| tau [self config default](features/cucumber/features/self/self.config.default.feature) | Print takelage default configuration |
|
120
120
|
| tau [self config home](features/cucumber/features/self/self.config.home.feature) | Print takelage home config file configuration |
|
121
121
|
| tau [self config project](features/cucumber/features/self/self.config.project.feature) | Print takelage project config file configuration |
|
122
|
+
| tau [self config envvars](features/cucumber/features/self/self.config.envvars.feature) | Print env vars takeltau configuration |
|
122
123
|
| tau [self version](features/cucumber/features/self/self.version.feature) | Print tau semantic version number |
|
123
124
|
| tau [ship completion bash](features/cucumber/features/ship/completion/completion.bash.feature) | Print bash completion code for ship subcommand |
|
124
125
|
| tau [ship container check existing](features/cucumber/features/ship/container/ship.container.check.existing.feature) | Check if a takelship is existing |
|
@@ -136,6 +137,7 @@ or *tau commands*:
|
|
136
137
|
| tau [ship container update](features/cucumber/features/ship/container/ship.container.update.feature) | Update takelship image |
|
137
138
|
| tau [ship info takelconfig](features/cucumber/features/ship/info/ship.info.takelconfig.feature) | Print takelage config |
|
138
139
|
| tau [ship info takelship](features/cucumber/features/ship/info/ship.info.takelship.feature) | Print takelship info |
|
140
|
+
| tau [ship info version](features/cucumber/features/ship/info/ship.info.version.feature) | Print ship version |
|
139
141
|
| tau [ship project create](features/cucumber/features/ship/project/ship.project.create.feature) [PROJECT] | Create a takelship [PROJECT] |
|
140
142
|
| tau [ship project list](features/cucumber/features/ship/project/ship.project.list.feature) | List takelship projects |
|
141
143
|
| tau [ship project restart](features/cucumber/features/ship/project/ship.project.restart.feature) [PROJECT] | Restart a takelship [PROJECT] |
|
@@ -159,6 +161,7 @@ or *tau commands*:
|
|
159
161
|
| tau ship sudo [CMD] | Alias for tau [ship container sudo](features/cucumber/features/ship/container/ship.container.sudo.feature) |
|
160
162
|
| tau ship wreck | Alias for tau [ship project stop](features/cucumber/features/ship/project/ship.project.stop.feature) |
|
161
163
|
| tau ship update | Alias for tau [ship container update](features/cucumber/features/ship/container/ship.container.update.feature) |
|
164
|
+
| tau ship version | Alias for tau [ship info version](features/cucumber/features/ship/container/ship.info.version.feature) |
|
162
165
|
| tau clean | Alias for tau [docker container clean](features/cucumber/features/docker/docker.container.clean.feature) |
|
163
166
|
| tau commands | Alias for tau [self commands](features/cucumber/features/self/self.commands.feature) |
|
164
167
|
| tau config | Alias for tau [self config active](features/cucumber/features/self/self.config.active.feature) |
|
@@ -195,10 +198,10 @@ The project directory is identified by the first match:
|
|
195
198
|
|
196
199
|
| Method | Precedence | Description |
|
197
200
|
|-|-|-|
|
198
|
-
| `--workdir`/`-w` command line option | ultimate |
|
199
|
-
| `TAKELAGE_WORKDIR` environment variable | highest |
|
200
|
-
| Main [`Rakefile`](Rakefile) | normal |
|
201
201
|
| Current working directory | lowest |
|
202
|
+
| Main [`Rakefile`](Rakefile) | normal |
|
203
|
+
| `TAKELAGE_WORKDIR` environment variable | highest |
|
204
|
+
| `--workdir`/`-w` command line option | ultimate |
|
202
205
|
|
203
206
|
### Configuration Examples
|
204
207
|
|
data/lib/takeltau/default.yml
CHANGED
data/lib/takeltau/lib/system.rb
CHANGED
@@ -5,7 +5,6 @@ require 'open3'
|
|
5
5
|
require 'yaml'
|
6
6
|
|
7
7
|
# Interaction with the operating system
|
8
|
-
# rubocop:disable Metrics/ModuleLength
|
9
8
|
module SystemModule
|
10
9
|
# Check if a command is available else log error message
|
11
10
|
# @return [Boolean] is the command available?
|
@@ -228,4 +227,3 @@ module SystemModule
|
|
228
227
|
plural
|
229
228
|
end
|
230
229
|
end
|
231
|
-
# rubocop:enable Metrics/ModuleLength
|
@@ -20,7 +20,6 @@ module Takeltau
|
|
20
20
|
|
21
21
|
tau self config defaults > ~/.takelage.yml
|
22
22
|
LONGDESC
|
23
|
-
# Print takeltau default configuration.
|
24
23
|
def default
|
25
24
|
config_default_yaml = hash_to_yaml(config.default)
|
26
25
|
exit false if config_default_yaml == false
|
@@ -28,6 +27,23 @@ module Takeltau
|
|
28
27
|
true
|
29
28
|
end
|
30
29
|
|
30
|
+
#
|
31
|
+
# config active
|
32
|
+
#
|
33
|
+
desc 'active', 'Print active takeltau configuration'
|
34
|
+
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
35
|
+
Print active takeltau configuration
|
36
|
+
This command will print the configuration read from the takeltau
|
37
|
+
configuration file (which is by default ~/.takeltau.yml).
|
38
|
+
LONGDESC
|
39
|
+
# Print active takeltau configuration.
|
40
|
+
def active
|
41
|
+
config_active_yaml = hash_to_yaml(config.active)
|
42
|
+
exit false if config_active_yaml == false
|
43
|
+
say config_active_yaml
|
44
|
+
true
|
45
|
+
end
|
46
|
+
|
31
47
|
#
|
32
48
|
# config home
|
33
49
|
#
|
@@ -78,22 +94,5 @@ module Takeltau
|
|
78
94
|
say config_envvars_yaml
|
79
95
|
true
|
80
96
|
end
|
81
|
-
|
82
|
-
#
|
83
|
-
# config active
|
84
|
-
#
|
85
|
-
desc 'active', 'Print active takeltau configuration'
|
86
|
-
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
87
|
-
Print active takeltau configuration
|
88
|
-
This command will print the configuration read from the takeltau
|
89
|
-
configuration file (which is by default ~/.takeltau.yml).
|
90
|
-
LONGDESC
|
91
|
-
# Print active takeltau configuration.
|
92
|
-
def active
|
93
|
-
config_active_yaml = hash_to_yaml(config.active)
|
94
|
-
exit false if config_active_yaml == false
|
95
|
-
say config_active_yaml
|
96
|
-
true
|
97
|
-
end
|
98
97
|
end
|
99
98
|
end
|
data/lib/takeltau/ship/cli.rb
CHANGED
@@ -176,6 +176,15 @@ module Takeltau
|
|
176
176
|
Takeltau::ShipProject.new.stop
|
177
177
|
end
|
178
178
|
|
179
|
+
desc 'version', 'Print ship version'
|
180
|
+
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
181
|
+
Print ship semantic version number.
|
182
|
+
Alias for ship info version.
|
183
|
+
LONGDESC
|
184
|
+
def version
|
185
|
+
Takeltau::ShipInfo.new.version
|
186
|
+
end
|
187
|
+
|
179
188
|
desc 'wreck', 'Stop a takelship'
|
180
189
|
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
181
190
|
Stop a takelship container.
|
@@ -36,5 +36,17 @@ module Takeltau
|
|
36
36
|
def takelship
|
37
37
|
say _ship_info_lib_get_takelshipinfo.to_yaml
|
38
38
|
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# ship info version
|
42
|
+
#
|
43
|
+
desc 'version', 'Print ship version'
|
44
|
+
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
45
|
+
Print ship semantic version number.
|
46
|
+
LONGDESC
|
47
|
+
def version
|
48
|
+
say VERSION
|
49
|
+
true
|
50
|
+
end
|
39
51
|
end
|
40
52
|
end
|
@@ -52,6 +52,13 @@ module Takeltau
|
|
52
52
|
# ship restart: {Takeltau::ShipProject#restart}
|
53
53
|
def restart(project = 'default')
|
54
54
|
Takeltau::ShipProject.new.stop
|
55
|
+
begin
|
56
|
+
seconds = Integer(config.active['ship_restart_sleep_seconds'])
|
57
|
+
rescue ArgumentError
|
58
|
+
seconds = 2
|
59
|
+
end
|
60
|
+
log.debug "Sleeping for #{seconds} seconds"
|
61
|
+
sleep seconds
|
55
62
|
Takeltau::ShipProject.new.start project
|
56
63
|
end
|
57
64
|
|
data/lib/takeltau/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.44.
|
1
|
+
0.44.41
|