takeltau 0.43.21 → 0.43.23
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/lib/takeltau/ship/cli.rb +12 -0
- data/lib/takeltau/ship/container/cli.rb +32 -6
- data/lib/takeltau/ship/container/command.rb +11 -0
- data/lib/takeltau/ship/container/sudo.rb +11 -0
- data/lib/takeltau/version +1 -1
- data/lib/takeltau.rb +2 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 179f0b7a1f0a55cb3a19d640fae0e44172943941112cf79ffa3b676e08424bee
|
4
|
+
data.tar.gz: d33e64ed86c368e1c60a82e026f24d8214f1aa426eaa88db0764c4e02ab7b517
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ecfd4990c4bbb84cd1715218d78bef5aac178b487c9abe8cf0c0d802097fd3fa400cd887210878ed392e2f17afad6060c9b2b671124641cb7687cb5a42f067b
|
7
|
+
data.tar.gz: 0401d8bd721ae94f4e15abcd861934c8423b1b513f5ad409938df7def79db972a6ad0197bd6ad71a86071f4ea31fc82986910b41d2ca01e721fd778b92841ea8
|
data/lib/takeltau/ship/cli.rb
CHANGED
@@ -62,6 +62,18 @@ module Takeltau
|
|
62
62
|
Takeltau::ShipContainer.new.podman args
|
63
63
|
end
|
64
64
|
|
65
|
+
desc 'command [ARGS]', 'Alias for tau ship container command'
|
66
|
+
# ship command: {Takeltau::ShipContainer#command}
|
67
|
+
def command(*args)
|
68
|
+
Takeltau::ShipContainer.new.command args
|
69
|
+
end
|
70
|
+
|
71
|
+
desc 'sudo [ARGS]', 'Alias for tau ship container sudo'
|
72
|
+
# ship sudo: {Takeltau::ShipContainer#sudo}
|
73
|
+
def sudo(*args)
|
74
|
+
Takeltau::ShipContainer.new.sudo args
|
75
|
+
end
|
76
|
+
|
65
77
|
desc 'start [PROJECT]', 'Alias for tau ship project start'
|
66
78
|
# ship start: {Takeltau::ShipProject#start}
|
67
79
|
def start(project = 'default')
|
@@ -14,6 +14,8 @@ module Takeltau
|
|
14
14
|
include ShipContainerList
|
15
15
|
include ShipContainerLogin
|
16
16
|
include ShipContainerPodman
|
17
|
+
include ShipContainerCommand
|
18
|
+
include ShipContainerSudo
|
17
19
|
include ShipContainerStop
|
18
20
|
include ShipContainerUpdate
|
19
21
|
|
@@ -25,19 +27,31 @@ module Takeltau
|
|
25
27
|
#
|
26
28
|
desc 'clean', 'Stop all takelship containers'
|
27
29
|
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
28
|
-
|
30
|
+
Stop all takelship containers
|
29
31
|
LONGDESC
|
30
32
|
# Stop all takelship containers.
|
31
33
|
def clean
|
32
34
|
ship_container_clean
|
33
35
|
end
|
34
36
|
|
37
|
+
#
|
38
|
+
# ship container command
|
39
|
+
#
|
40
|
+
desc 'command', 'Run a command in a takelship container'
|
41
|
+
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
42
|
+
Run a command in a takelship container
|
43
|
+
LONGDESC
|
44
|
+
# Run a command in a takelship container.
|
45
|
+
def command(*args)
|
46
|
+
say ship_container_command args
|
47
|
+
end
|
48
|
+
|
35
49
|
#
|
36
50
|
# ship container list
|
37
51
|
#
|
38
52
|
desc 'list', 'List takelship containers'
|
39
53
|
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
40
|
-
|
54
|
+
List takelage containers
|
41
55
|
LONGDESC
|
42
56
|
# List takelage containers.
|
43
57
|
def list
|
@@ -49,7 +63,7 @@ module Takeltau
|
|
49
63
|
#
|
50
64
|
desc 'login', 'Log in to a takelship'
|
51
65
|
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
52
|
-
|
66
|
+
Log in to a takelship
|
53
67
|
LONGDESC
|
54
68
|
# Log in to a takelship.
|
55
69
|
def login
|
@@ -61,19 +75,31 @@ module Takeltau
|
|
61
75
|
#
|
62
76
|
desc 'podman', 'Run podman command'
|
63
77
|
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
64
|
-
|
78
|
+
Run podman command
|
65
79
|
LONGDESC
|
66
80
|
# Run podman command.
|
67
81
|
def podman(*args)
|
68
82
|
say ship_container_podman args
|
69
83
|
end
|
70
84
|
|
85
|
+
#
|
86
|
+
# ship container sudo
|
87
|
+
#
|
88
|
+
desc 'sudo', 'Run a sudo command in a takelship container'
|
89
|
+
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
90
|
+
Run a sudo command in a takelship container
|
91
|
+
LONGDESC
|
92
|
+
# Run a sudo command in a takelship container.
|
93
|
+
def sudo(*args)
|
94
|
+
say ship_container_sudo args
|
95
|
+
end
|
96
|
+
|
71
97
|
#
|
72
98
|
# ship container stop
|
73
99
|
#
|
74
100
|
desc 'stop', 'Stop takelship container'
|
75
101
|
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
76
|
-
|
102
|
+
Stop takelship container
|
77
103
|
LONGDESC
|
78
104
|
# Stop takelship container.
|
79
105
|
def stop
|
@@ -85,7 +111,7 @@ module Takeltau
|
|
85
111
|
#
|
86
112
|
desc 'update', 'Update takelship image'
|
87
113
|
long_desc <<-LONGDESC.gsub("\n", "\x5")
|
88
|
-
|
114
|
+
Update takelship image
|
89
115
|
LONGDESC
|
90
116
|
# Update takelship image.
|
91
117
|
def update
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# tau ship container command
|
4
|
+
module ShipContainerCommand
|
5
|
+
# Run a command in a takelship
|
6
|
+
def ship_container_command(args)
|
7
|
+
return false unless ship_container_check_existing
|
8
|
+
|
9
|
+
_ship_container_lib_docker_exec "pod #{args.join(' ')}"
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# tau ship container sudo
|
4
|
+
module ShipContainerSudo
|
5
|
+
# Run a sudo command in a takelship
|
6
|
+
def ship_container_sudo(args)
|
7
|
+
return false unless ship_container_check_existing
|
8
|
+
|
9
|
+
_ship_container_lib_docker_exec args.join(' ')
|
10
|
+
end
|
11
|
+
end
|
data/lib/takeltau/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.43.
|
1
|
+
0.43.23
|
data/lib/takeltau.rb
CHANGED
@@ -90,8 +90,10 @@ require_relative 'takeltau/ship/container/check/cli'
|
|
90
90
|
require_relative 'takeltau/ship/info/lib'
|
91
91
|
require_relative 'takeltau/ship/container/list'
|
92
92
|
require_relative 'takeltau/ship/container/clean'
|
93
|
+
require_relative 'takeltau/ship/container/command'
|
93
94
|
require_relative 'takeltau/ship/container/login'
|
94
95
|
require_relative 'takeltau/ship/container/podman'
|
96
|
+
require_relative 'takeltau/ship/container/sudo'
|
95
97
|
require_relative 'takeltau/ship/container/stop'
|
96
98
|
require_relative 'takeltau/ship/container/update'
|
97
99
|
require_relative 'takeltau/ship/container/cli'
|
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.43.
|
4
|
+
version: 0.43.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takelwerk
|
@@ -290,11 +290,13 @@ files:
|
|
290
290
|
- lib/takeltau/ship/container/check/existing.rb
|
291
291
|
- lib/takeltau/ship/container/clean.rb
|
292
292
|
- lib/takeltau/ship/container/cli.rb
|
293
|
+
- lib/takeltau/ship/container/command.rb
|
293
294
|
- lib/takeltau/ship/container/lib.rb
|
294
295
|
- lib/takeltau/ship/container/list.rb
|
295
296
|
- lib/takeltau/ship/container/login.rb
|
296
297
|
- lib/takeltau/ship/container/podman.rb
|
297
298
|
- lib/takeltau/ship/container/stop.rb
|
299
|
+
- lib/takeltau/ship/container/sudo.rb
|
298
300
|
- lib/takeltau/ship/container/update.rb
|
299
301
|
- lib/takeltau/ship/info/cli.rb
|
300
302
|
- lib/takeltau/ship/info/lib.rb
|