devkitkat 0.1.22 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/devkitkat/config.rb +5 -1
- data/lib/devkitkat/service/driver/docker/container.rb +3 -1
- data/lib/devkitkat/version.rb +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: d78e04049eb6c7f8af3da441d02ee3a85d0d150a3fff59fe3b07f7e676eeb7ec
|
4
|
+
data.tar.gz: d9f58a5a417f29532beb1b048adfcbe9f6ff1afede9ec05e59f57264d3af30a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '074873ddc421c224345e7bdaf454a18ef830c371edbc34694a1ceb5e0ebf8cdffe6a04cd9e0c84e632077c956b0a010e062213a44bb4d29eee1250baaed7aec7'
|
7
|
+
data.tar.gz: cc0d28c042a344b707994d0ddb68855fb3dcc79935fc808da2a69a902cb4452ace270dce40d4855156a2cbb74abce3286662fc61f1c45367de02cecc1ff2d55a
|
data/lib/devkitkat/config.rb
CHANGED
@@ -57,10 +57,14 @@ module Devkitkat
|
|
57
57
|
devkitkat_yml.dig('machine', 'network_mode')
|
58
58
|
end
|
59
59
|
|
60
|
-
def
|
60
|
+
def machine_extra_write_accesses
|
61
61
|
devkitkat_yml.dig('machine', 'extra_write_accesses')
|
62
62
|
end
|
63
63
|
|
64
|
+
def machine_root_user
|
65
|
+
devkitkat_yml.dig('machine', 'root_user')
|
66
|
+
end
|
67
|
+
|
64
68
|
def application
|
65
69
|
devkitkat_yml.fetch('application', DEFAULT_APPLICATION_NAME)
|
66
70
|
end
|
@@ -117,7 +117,7 @@ module Devkitkat
|
|
117
117
|
end
|
118
118
|
|
119
119
|
def allowed_by_extra_write_accesses?(service)
|
120
|
-
config.
|
120
|
+
config.machine_extra_write_accesses&.any? do |access|
|
121
121
|
from, _, to = access.split(':')
|
122
122
|
self.service.name == from && service.name == to
|
123
123
|
end
|
@@ -136,6 +136,8 @@ module Devkitkat
|
|
136
136
|
end
|
137
137
|
|
138
138
|
def create_host_user
|
139
|
+
return if config.machine_root_user
|
140
|
+
|
139
141
|
prepare!(['addgroup', '--gid', group_id, user_name])
|
140
142
|
|
141
143
|
prepare!(['adduser',
|
data/lib/devkitkat/version.rb
CHANGED