haconiwa 0.0.1.pre3 → 0.1.0

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
  SHA1:
3
- metadata.gz: 1977a089936273a9c144d238d24a65371b8b5f97
4
- data.tar.gz: f08c51b80e7450b969ee8352faacf5d85d69ee2a
3
+ metadata.gz: 789ac623034f84c580c9a3c0d86d736b10da1582
4
+ data.tar.gz: e3c63d4dfc082b8edb33d34e96863d952360c80f
5
5
  SHA512:
6
- metadata.gz: 6c2131693b7224ad6beba0ff59bbbc131cb3a5068552d812e06372ba1aa48134d0e32c721fe0ea32d22a1ce805cae8a9d80ca2076287ccacdbcbffb708a8c05e
7
- data.tar.gz: 107f85c23c0d32e17c876ea2e892f26bdf20b15a6a9899cf68cae0032c76f1d143033c7be36f6b8c7ea872268ed168e4a30716e5e1ad2d983be997f746535920
6
+ metadata.gz: 570fa08764eeccba256b7c559bda8b31dff0e9039a6679ff2a66477cab0cc808e6eaaa1dfab5bbd5584e3405c4aa054f1e9cb44847ecc992d62b833eec1c7e17
7
+ data.tar.gz: 47d510dd9d9485798918214231fba654b2ec5c3cd436e4339bacc9a3469d41a3ac50d01edf70f97c5f75e81f046476aa54e751d961a7a3e759ea58935cd33a5a
data/lib/haconiwa/base.rb CHANGED
@@ -45,4 +45,15 @@ module Haconiwa
45
45
  end
46
46
  alias run start
47
47
  end
48
+
49
+ module Utils
50
+ # $ ausyscall --dump | grep hostname
51
+ # 170 sethostname
52
+
53
+ def sethostname(name)
54
+ Kernel.syscall(170, name, name.length)
55
+ end
56
+ end
57
+
58
+ Base.extend Utils
48
59
  end
@@ -28,6 +28,8 @@ module Haconiwa::Runners
28
28
  wrapper.close
29
29
  FileUtils.chmod 0700, wrapper.path
30
30
 
31
+ Haconiwa::Base.sethostname(base.name)
32
+
31
33
  base.capabilities.apply!
32
34
 
33
35
  if base.namespace.use_pid_ns
@@ -1,3 +1,3 @@
1
1
  module Haconiwa
2
- VERSION = "0.0.1.pre3"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haconiwa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Uchio KONDO
@@ -157,9 +157,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
- - - ">"
160
+ - - ">="
161
161
  - !ruby/object:Gem::Version
162
- version: 1.3.1
162
+ version: '0'
163
163
  requirements: []
164
164
  rubyforge_project:
165
165
  rubygems_version: 2.4.5.1