devkitkat 0.1.34 → 0.1.35

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: e8fd1702bb57e08ff95b457deda0700eaceabe5bb1b016e2510c55aeb00da4e1
4
- data.tar.gz: 130d60d2212815e550c7c9588f8912162345830089b8618fb3265eab66ddc47a
3
+ metadata.gz: 165a5288cd8a82c659cdb88bd8f26f78b8cbed8e1d694d7860c420a1d5237494
4
+ data.tar.gz: 25b48673025000c5b1122a8ddd899d1cf4962ec2de5e1ad8826785ac5ce6420a
5
5
  SHA512:
6
- metadata.gz: ada0dcf7dd8124c3baae87cf127c842afc4e55e533bab0541ed8943d323e5bf694e61fac2fddf802de4b78986887c62034b65bca18d152925f3f8445b52c46ae
7
- data.tar.gz: cd9152bc0d81c5d623d49a1a3931687a52e796a78794ae17254ebee5328e8e9c5e36bd8b8723a1fa3e3accd45ae499466b61e63543a15ca4b887f14c90e83169
6
+ metadata.gz: fc5073ab8d1b7221fa0e557a40131b2bbaba1a57e3d401800852924c6613352b1cecfdfa60b952d23ef4c94dcd069c43e798418397ea43aab993c804cc593d8b
7
+ data.tar.gz: 493248dc330f0781484edcf5d089c3579154447c2369169f931a4e8dd2fd14446c5263bb59b612ca79f6559dfc9d3a999e271837cffba55c5c5b538096c72378
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devkitkat (0.1.34)
4
+ devkitkat (0.1.35)
5
5
  activesupport (~> 6.0.0)
6
6
  colorize (~> 0.8.1)
7
7
  docker-api (~> 2.0.0)
@@ -14,7 +14,7 @@ PATH
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
- activesupport (6.0.3.4)
17
+ activesupport (6.0.3.5)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
19
  i18n (>= 0.7, < 2)
20
20
  minitest (~> 5.1)
@@ -22,13 +22,13 @@ GEM
22
22
  zeitwerk (~> 2.2, >= 2.2.2)
23
23
  coderay (1.1.3)
24
24
  colorize (0.8.1)
25
- concurrent-ruby (1.1.7)
25
+ concurrent-ruby (1.1.8)
26
26
  diff-lcs (1.3)
27
27
  docker-api (2.0.0)
28
28
  excon (>= 0.47.0)
29
29
  multi_json
30
- excon (0.78.0)
31
- i18n (1.8.5)
30
+ excon (0.79.0)
31
+ i18n (1.8.9)
32
32
  concurrent-ruby (~> 1.0)
33
33
  method_source (0.9.2)
34
34
  minitest (5.14.2)
@@ -58,9 +58,9 @@ GEM
58
58
  rspec (>= 3.0)
59
59
  ruby-progressbar (1.10.1)
60
60
  thread_safe (0.3.6)
61
- tzinfo (1.2.7)
61
+ tzinfo (1.2.9)
62
62
  thread_safe (~> 0.1)
63
- zeitwerk (2.4.0)
63
+ zeitwerk (2.4.2)
64
64
 
65
65
  PLATFORMS
66
66
  ruby
@@ -145,6 +145,10 @@ module Devkitkat
145
145
  @group_id ||= `id -u`.delete("\n")
146
146
  end
147
147
 
148
+ def docker_group_id
149
+ @docker_group_id ||= `getent group docker | awk -F: '{ printf $3 }'`
150
+ end
151
+
148
152
  def user_id
149
153
  @user_id ||= `id -g`
150
154
  end
@@ -164,6 +168,7 @@ module Devkitkat
164
168
  prepare!(['chown', "#{user_name}:#{user_name}", ROOT_IN_CONTAINER])
165
169
  prepare!(['chown', '-R', "#{user_name}:#{user_name}", "#{ROOT_IN_CONTAINER}/services/#{service.name}"])
166
170
  prepare!(['usermod', '-aG', 'docker', user_name])
171
+ prepare!(['groupmod', '-g', docker_group_id, 'docker'])
167
172
  end
168
173
 
169
174
  def prepare!(cmds, params = {})
@@ -1,3 +1,3 @@
1
1
  module Devkitkat
2
- VERSION = "0.1.34"
2
+ VERSION = "0.1.35"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devkitkat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.34
4
+ version: 0.1.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinya Maeda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler