{"action":"created","issue":{"url":"https://api.github.com/repos/haconiwa/mruby-linux-namespace/issues/14","repository_url":"https://api.github.com/repos/haconiwa/mruby-linux-namespace","labels_url":"https://api.github.com/repos/haconiwa/mruby-linux-namespace/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/haconiwa/mruby-linux-namespace/issues/14/comments","events_url":"https://api.github.com/repos/haconiwa/mruby-linux-namespace/issues/14/events","html_url":"https://github.com/haconiwa/mruby-linux-namespace/pull/14","id":347812012,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MzEzMjE5","number":14,"title":"Add Namespace#nsenter with block","user":{"login":"udzura","id":91011,"node_id":"MDQ6VXNlcjkxMDEx","avatar_url":"https://avatars2.githubusercontent.com/u/91011?v=4","gravatar_id":"","url":"https://api.github.com/users/udzura","html_url":"https://github.com/udzura","followers_url":"https://api.github.com/users/udzura/followers","following_url":"https://api.github.com/users/udzura/following{/other_user}","gists_url":"https://api.github.com/users/udzura/gists{/gist_id}","starred_url":"https://api.github.com/users/udzura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/udzura/subscriptions","organizations_url":"https://api.github.com/users/udzura/orgs","repos_url":"https://api.github.com/users/udzura/repos","events_url":"https://api.github.com/users/udzura/events{/privacy}","received_events_url":"https://api.github.com/users/udzura/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-06T07:38:20Z","updated_at":"2018-08-06T07:44:46Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/haconiwa/mruby-linux-namespace/pulls/14","html_url":"https://github.com/haconiwa/mruby-linux-namespace/pull/14","diff_url":"https://github.com/haconiwa/mruby-linux-namespace/pull/14.diff","patch_url":"https://github.com/haconiwa/mruby-linux-namespace/pull/14.patch"},"body":"This enable it to work well:\r\n\r\n\r\n```bash\r\ncat <<RUBY | sudo ./mruby/bin/mruby\r\nNamespace.nsenter(:net, fd: open('/var/run/netns/foobar')) do\r\n  system 'ip a'\r\nend\r\nRUBY\r\n1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default qlen 1000\r\n    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n```"},"comment":{"url":"https://api.github.com/repos/haconiwa/mruby-linux-namespace/issues/comments/410617900","html_url":"https://github.com/haconiwa/mruby-linux-namespace/pull/14#issuecomment-410617900","issue_url":"https://api.github.com/repos/haconiwa/mruby-linux-namespace/issues/14","id":410617900,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDYxNzkwMA==","user":{"login":"udzura","id":91011,"node_id":"MDQ6VXNlcjkxMDEx","avatar_url":"https://avatars2.githubusercontent.com/u/91011?v=4","gravatar_id":"","url":"https://api.github.com/users/udzura","html_url":"https://github.com/udzura","followers_url":"https://api.github.com/users/udzura/followers","following_url":"https://api.github.com/users/udzura/following{/other_user}","gists_url":"https://api.github.com/users/udzura/gists{/gist_id}","starred_url":"https://api.github.com/users/udzura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/udzura/subscriptions","organizations_url":"https://api.github.com/users/udzura/orgs","repos_url":"https://api.github.com/users/udzura/repos","events_url":"https://api.github.com/users/udzura/events{/privacy}","received_events_url":"https://api.github.com/users/udzura/received_events","type":"User","site_admin":false},"created_at":"2018-08-06T07:44:46Z","updated_at":"2018-08-06T07:44:46Z","author_association":"MEMBER","body":"`Object#const_defined?` should be used"}}
{"actor":{"display_login":"udzura"}}