devkitkat 0.1.24 → 0.1.25

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: 6c079a687bb36c2c2396e14a02fcd2ac5a67422fe02226f203c7ac242b59ba2a
4
- data.tar.gz: de00d4cce156da1d97677f90b8a8f0c5fe3b40c524b89ded6e473a4acfdefecf
3
+ metadata.gz: 421aca57d9ed36e6ed5bc0555ece96e45ba98546c7df5ae643235648fd2978c8
4
+ data.tar.gz: ffa96bdf80c4351dd19caaf3f85f57b3d4505c994c3e687755aafcb14a4599d8
5
5
  SHA512:
6
- metadata.gz: 7e329d9cc48f20a718906168d4618e5c1f396d1bdea20bafc33fd14a72c95a0d64ed4c648865e21782ce9c79ac312a7cdeb8572079fb0103f8e8a36175b36ba6
7
- data.tar.gz: 333e9d673aed584f42e389f8701b6c0e47a2753e773a4c3cda37bff7a4ec7fbb25a70e7435c434ceb3b30a2f781cf6ee9dbd1da4ef5fcba92fc77c201db7e811
6
+ metadata.gz: fec93d309ccd8de925dc2f7c055fb86573c6ec2adb22a10946c04b4a10b24afb12601540d914df0b86e259777e30ac5718fb5878f264b9fb33e324354f168a2b
7
+ data.tar.gz: 36a6194e6db9d2464f8f24cf31f5c686ea2c83827bb24e3328ca1d023c546f1848ce4e73ce91979d8cfd531ce28be615a8ecd9797b131d027f0404edcd1934ed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devkitkat (0.1.22)
4
+ devkitkat (0.1.24)
5
5
  activesupport (~> 6.0.0)
6
6
  colorize (~> 0.8.1)
7
7
  docker-api (~> 1.34.2)
@@ -61,10 +61,6 @@ module Devkitkat
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
-
68
64
  def application
69
65
  devkitkat_yml.fetch('application', DEFAULT_APPLICATION_NAME)
70
66
  end
@@ -11,10 +11,10 @@ module Devkitkat
11
11
 
12
12
  def start
13
13
  if @container = find
14
- container.start
14
+ container.restart
15
15
  else
16
16
  @container = create
17
- container.start
17
+ container.restart
18
18
  create_host_user
19
19
  end
20
20
  end
@@ -136,8 +136,6 @@ module Devkitkat
136
136
  end
137
137
 
138
138
  def create_host_user
139
- return if config.machine_root_user
140
-
141
139
  prepare!(['addgroup', '--gid', group_id, user_name])
142
140
 
143
141
  prepare!(['adduser',
@@ -14,11 +14,7 @@ module Devkitkat
14
14
  def execute(script_file)
15
15
  new_path = rewrite_root_path!(script_file)
16
16
 
17
- if config.machine_root_user
18
- container.exec_as_root([new_path])
19
- else
20
- container.exec([new_path])
21
- end
17
+ container.exec([new_path])
22
18
  end
23
19
 
24
20
  def cleanup
@@ -1,3 +1,3 @@
1
1
  module Devkitkat
2
- VERSION = "0.1.24"
2
+ VERSION = "0.1.25"
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.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinya Maeda