From 9f139a2147495c2338b71ffba64e980bfaace7ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Tue, 26 May 2020 02:59:58 +0200 Subject: [PATCH] Minor refactoring --- github-fast-env.rb | 6 +++--- github-fast-envd.rb | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/github-fast-env.rb b/github-fast-env.rb index d7ef16f..8eb7957 100755 --- a/github-fast-env.rb +++ b/github-fast-env.rb @@ -126,11 +126,11 @@ while true log "info", "connecting to named pipes at #{pipe_base_path}" - pipes["stdin"] = File::open("#{pipe_base_path}.stdin", "w") + pipes["stdin"] = File.open("#{pipe_base_path}.stdin", "w") pipes["stdin"].sync = true - pipes["stdout"] = File::open("#{pipe_base_path}.stdout", "r") + pipes["stdout"] = File.open("#{pipe_base_path}.stdout", "r") pipes["stdout"].sync = true - pipes["stderr"] = File::open("#{pipe_base_path}.stderr", "r") + pipes["stderr"] = File.open("#{pipe_base_path}.stderr", "r") pipes["stderr"].sync = true read_ios += [$stdin, pipes["stdout"], pipes["stderr"]] diff --git a/github-fast-envd.rb b/github-fast-envd.rb index aad0286..9002273 100755 --- a/github-fast-envd.rb +++ b/github-fast-envd.rb @@ -98,11 +98,11 @@ def set_up_named_pipes(control_socket, connection_id) control_socket.puts "named-pipes #{pipe_base_path_encoded}" - stdin = File::open(stdin, "r") + stdin = File.open(stdin, "r") stdin.sync = true - stdout = File::open(stdout, "w") + stdout = File.open(stdout, "w") stdout.sync = true - stderr = File::open(stderr, "w") + stderr = File.open(stderr, "w") stderr.sync = true $original_stderr.puts " set up named pipes" @@ -122,7 +122,7 @@ def set_up_named_pipes(control_socket, connection_id) end def set_up_pseudoterminal(control_socket, pseudoterminal_path) - pseudoterminal_io = File::open(pseudoterminal_path, File::RDWR | File::NOCTTY) + pseudoterminal_io = File.open(pseudoterminal_path, File::RDWR | File::NOCTTY) $original_stderr.puts " connecting to pseudoterminal #{pseudoterminal_path}"