Skip to content
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

(SDK-336) Add operating system question to the new module interview #262

Merged
merged 4 commits into from
Sep 8, 2017

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Aug 17, 2017

WIP because I need to test this out on windows

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 93.723% when pulling 39bc89f on rodjek:sdk-336 into f1dbc6a on puppetlabs:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 94.013% when pulling 6e92485 on rodjek:sdk-336 into ff57c56 on puppetlabs:master.

Copy link
Contributor

@DavidS DavidS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I tried it out on Linux, and it worked fine!

I'll merge as soon as the rubocop fixes have passed CI.

When looking at the output, I was thinking about sorting the operatingsystem_support section by OS name, but a) the to_json method only calls to the library, making that harder than it looked, and b) having it like this keeps the siblings together in the list, which is a bonus.

@DavidS DavidS added the feature label Sep 6, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 94.013% when pulling a48f6bf on rodjek:sdk-336 into ff57c56 on puppetlabs:master.

Without this pressing ^C at the final prompt in the interview would cause
an ugly stack trace:

```
About to generate this module; continue? (Y/n) /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/reader.rb:336:in `handle_interrupt': TTY::Prompt::Reader::InputInterrupt (TTY::Prompt::Reader::InputInterrupt)
	from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/reader.rb:137:in `get_codes'
	from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/reader.rb:174:in `block in read_line'
	from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/reader.rb:97:in `unbufferred'
	from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/reader.rb:174:in `read_line'
	from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/question.rb:158:in `read_input'
	from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/question.rb:147:in `process_input'
	from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/question.rb:112:in `render'
	from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt/confirm_question.rb:65:in `call'
	from /home/david/gems/ruby/2.3.0/gems/tty-prompt-0.13.1/lib/tty/prompt.rb:314:in `yes?'
	from /home/david/git/pdk/lib/pdk/generators/module.rb:310:in `module_interview'
```
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 93.902% when pulling 40e99a0 on rodjek:sdk-336 into ff57c56 on puppetlabs:master.

@DavidS
Copy link
Contributor

DavidS commented Sep 6, 2017

Appveyor needed a rebuild to become green, after failing to git clone some dependencies.

@rodjek rodjek changed the title [WIP] (SDK-336) Add operating system question to the new module interview (SDK-336) Add operating system question to the new module interview Sep 7, 2017
@DavidS DavidS merged commit 8e5bbe5 into puppetlabs:master Sep 8, 2017
@rodjek rodjek deleted the sdk-336 branch September 11, 2017 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants