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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19d4a68e881590b167d09fb7564e53f0e6b337386ad4de76043d4ed5c1d8d3ab
4
- data.tar.gz: 5d1150ee9dcdd3820b60d8f460da8d69ed9eef314f13626da409d8481e78d7e3
3
+ metadata.gz: d78e04049eb6c7f8af3da441d02ee3a85d0d150a3fff59fe3b07f7e676eeb7ec
4
+ data.tar.gz: d9f58a5a417f29532beb1b048adfcbe9f6ff1afede9ec05e59f57264d3af30a5
5
5
  SHA512:
6
- metadata.gz: eee0fd0f5ab8ebea39250f607ec29871f2f860305d601a1c161caf87c5b97066a6f26cecc019bd88797e9a6210b7a678b1eac793422d308b40fdfba2ce5a669b
7
- data.tar.gz: 5c133cd5b4d58a45711ee7192b39980a0519e5d786377674d2399ff0f43b57f8dc4cb72044ba2c0b3bfb535d6e38b47f72ca4e19158a3c04845e885aa4918eac
6
+ metadata.gz: '074873ddc421c224345e7bdaf454a18ef830c371edbc34694a1ceb5e0ebf8cdffe6a04cd9e0c84e632077c956b0a010e062213a44bb4d29eee1250baaed7aec7'
7
+ data.tar.gz: cc0d28c042a344b707994d0ddb68855fb3dcc79935fc808da2a69a902cb4452ace270dce40d4855156a2cbb74abce3286662fc61f1c45367de02cecc1ff2d55a
@@ -57,10 +57,14 @@ module Devkitkat
57
57
  devkitkat_yml.dig('machine', 'network_mode')
58
58
  end
59
59
 
60
- def extra_write_accesses
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.extra_write_accesses&.any? do |access|
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',
@@ -1,3 +1,3 @@
1
1
  module Devkitkat
2
- VERSION = "0.1.22"
2
+ VERSION = "0.1.23"
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.22
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinya Maeda