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: d78e04049eb6c7f8af3da441d02ee3a85d0d150a3fff59fe3b07f7e676eeb7ec
4
- data.tar.gz: d9f58a5a417f29532beb1b048adfcbe9f6ff1afede9ec05e59f57264d3af30a5
3
+ metadata.gz: 6c079a687bb36c2c2396e14a02fcd2ac5a67422fe02226f203c7ac242b59ba2a
4
+ data.tar.gz: de00d4cce156da1d97677f90b8a8f0c5fe3b40c524b89ded6e473a4acfdefecf
5
5
  SHA512:
6
- metadata.gz: '074873ddc421c224345e7bdaf454a18ef830c371edbc34694a1ceb5e0ebf8cdffe6a04cd9e0c84e632077c956b0a010e062213a44bb4d29eee1250baaed7aec7'
7
- data.tar.gz: cc0d28c042a344b707994d0ddb68855fb3dcc79935fc808da2a69a902cb4452ace270dce40d4855156a2cbb74abce3286662fc61f1c45367de02cecc1ff2d55a
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 exec_as_host(cmds, params = {})
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 exec_as_host(cmds, params)
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
- container.exec([new_path])
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
@@ -1,3 +1,3 @@
1
1
  module Devkitkat
2
- VERSION = "0.1.23"
2
+ VERSION = "0.1.24"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devkitkat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinya Maeda