New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use IO#gets instead of Kernel#gets #287

merged 1 commit into from Oct 26, 2013


None yet
2 participants
Copy link

takai commented Oct 25, 2013

serverspec-init command raises error when passing an argument because Kernel#gets read ARGF.

% bin/serverspec-init read_from_argf
Select OS type:

  1) UN*X
  2) Windows

Select number: /Users/naoto-takai/Src/external/serverspec/lib/serverspec/setup.rb:55:in `gets': No such file or directory - read_from_argf (Errno::ENOENT)
        from /Users/naoto-takai/Src/external/serverspec/lib/serverspec/setup.rb:55:in `gets'
        from /Users/naoto-takai/Src/external/serverspec/lib/serverspec/setup.rb:55:in `ask_os_type'
        from /Users/naoto-takai/Src/external/serverspec/lib/serverspec/setup.rb:8:in `run'
        from bin/serverspec-init:7:in `<main>'

@mizzy mizzy merged commit bf3c10c into mizzy:master Oct 26, 2013

1 check passed

default The Travis CI build passed

This comment has been minimized.

Copy link

mizzy commented Oct 26, 2013


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment