devkitkat 0.1.23 → 0.1.24
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c079a687bb36c2c2396e14a02fcd2ac5a67422fe02226f203c7ac242b59ba2a
|
4
|
+
data.tar.gz: de00d4cce156da1d97677f90b8a8f0c5fe3b40c524b89ded6e473a4acfdefecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e329d9cc48f20a718906168d4618e5c1f396d1bdea20bafc33fd14a72c95a0d64ed4c648865e21782ce9c79ac312a7cdeb8572079fb0103f8e8a36175b36ba6
|
7
|
+
data.tar.gz: 333e9d673aed584f42e389f8701b6c0e47a2753e773a4c3cda37bff7a4ec7fbb25a70e7435c434ceb3b30a2f781cf6ee9dbd1da4ef5fcba92fc77c201db7e811
|
@@ -30,7 +30,7 @@ module Devkitkat
|
|
30
30
|
safe_exec(cmds, params)
|
31
31
|
end
|
32
32
|
|
33
|
-
def
|
33
|
+
def exec_as_root(cmds, params = {})
|
34
34
|
safe_exec(cmds, params)
|
35
35
|
end
|
36
36
|
|
@@ -154,7 +154,7 @@ module Devkitkat
|
|
154
154
|
end
|
155
155
|
|
156
156
|
def prepare!(cmds, params = {})
|
157
|
-
unless
|
157
|
+
unless exec_as_root(cmds, params)
|
158
158
|
raise Driver::Base::PreparationError, "Failed to execute command in container. cmds: #{cmds}"
|
159
159
|
end
|
160
160
|
end
|
@@ -14,7 +14,11 @@ module Devkitkat
|
|
14
14
|
def execute(script_file)
|
15
15
|
new_path = rewrite_root_path!(script_file)
|
16
16
|
|
17
|
-
|
17
|
+
if config.machine_root_user
|
18
|
+
container.exec_as_root([new_path])
|
19
|
+
else
|
20
|
+
container.exec([new_path])
|
21
|
+
end
|
18
22
|
end
|
19
23
|
|
20
24
|
def cleanup
|
data/lib/devkitkat/version.rb
CHANGED