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

Use windows line endings for windows hosts file #65

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Use windows line endings for windows hosts file #65

wants to merge 2 commits into from

Conversation

Novex
Copy link

@Novex Novex commented Feb 13, 2015

No description provided.

@@ -208,7 +208,9 @@ def new_content
entries = hostsfile_header
entries += unique_entries.map(&:to_line)
entries << ''
entries.join("\n")
line_ending = "\n"
line_ending = "\r\n" if node['platform_family'] == 'windows'
Copy link

Choose a reason for hiding this comment

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

We could combine this line (ex. line_ending = node['platform_family'] == 'windows' ? "\r\n" : "\n") so that we don't assign line_ending twice, in the uncommon case.

Copy link
Author

Choose a reason for hiding this comment

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

sounds good to me, ruby isn't my first language :)

@mburns
Copy link

mburns commented Jun 21, 2015

+1

@sethvargo sethvargo mentioned this pull request Jun 24, 2015
@ngtjah
Copy link

ngtjah commented Jan 8, 2016

+1

@lukas-lansky
Copy link

Can I help somehow with merging this change?

@geoff-carr-bzy
Copy link

👍

@geoff-carr-bzy
Copy link

Judging by the age of some of the open PRs, is this repo even supported anymore?

@geoff-carr-bzy
Copy link

Anything you can help with @tas50 as I see you fixed some of the previously failing Travis builds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants