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

restructure content fetching from github #465

Merged
merged 7 commits into from
May 21, 2018

Conversation

bastelfreak
Copy link
Member

No description provided.

Copy link
Member

@rnelson0 rnelson0 left a comment

Choose a reason for hiding this comment

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

Ugh, I’m on my phone and the review interface got a little weird, hope the comments made it through fine.

begin
response = open("https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.sync.yml")
rescue OpenURI::HTTPError
puts "something is fucked up with #{repo} and https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.sync.yml"
Copy link
Member

Choose a reason for hiding this comment

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

We should remove vulgarity from error messages. Some may appreciate it but it’s not fully inclusive.

Copy link
Member Author

Choose a reason for hiding this comment

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

sorry. removed it

response = open("https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.sync.yml")
rescue OpenURI::HTTPError
puts "something is fucked up with #{repo} and https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.sync.yml"
modules_that_have_missing_secrets << repo
Copy link
Member

Choose a reason for hiding this comment

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

Is there a plan for this variable? I want to say it should be named more accurately (missing_sync?) but I don’t see it used anywhere at all.

puts "We need to add Puppets version_requirement to: #{modules_without_puppet_version_range.join(', ')}" if modules_without_puppet_version_range.count > 0
puts "We need to adjust the list of operatingsystemrelease for Debian to #{DEBIAN_SUPPORT_RANGE} on: #{supports_wrong_debian_version.join(', ')}"
puts "We need to adjust the list of operatingsystemrelease for Ubuntu to #{UBUNTU_SUPPORT_RANGE} on: #{supports_wrong_ubuntu_version.join(', ')}"
puts "We need to adjust the list of operatingsystemrelease for CentOS to #{CENTOS_SUPPORT_RANGE} on: #{supports_wrong_centos_version.join(', ')}"
Copy link
Member

Choose a reason for hiding this comment

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

Should these have if guards as well?

begin
response = open("https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.msync.yml")
rescue OpenURI::HTTPError
puts "something is fucked up with #{repo} and https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.msync.yml"
puts "something is fucked up with #{repo} and https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.msync.yml" if DEBUG
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove the vulgarity here, please? It’s going to be funny to some and off putting to others.

begin
response = open("https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.msync.yml")
rescue OpenURI::HTTPError
puts "something is fucked up with #{repo} and https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.msync.yml"
puts "something is fucked up with #{repo} and https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.msync.yml" if DEBUG
modules_that_were_added_but_never_synced << repo
Copy link
Member

Choose a reason for hiding this comment

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

This does not seem to be used

response = open("https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.sync.yml")
rescue OpenURI::HTTPError
puts "something is fucked up with #{repo} and https://raw.githubusercontent.com/voxpupuli/#{repo}/master/.sync.yml" if DEBUG
modules_that_have_missing_secrets << repo
Copy link
Member

Choose a reason for hiding this comment

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

This does not seem to be used

@rnelson0
Copy link
Member

@bastelfreak what about the operating system release sections, will they spit out junk if there’s no issues?

@bastelfreak
Copy link
Member Author

@rnelson0 I fixed that

@rnelson0
Copy link
Member

It looks like you're done but still has WIP in the title, let me know if you're good to go or if I should revoke my review.

@bastelfreak bastelfreak changed the title [WIP]restructure content fetching from github restructure content fetching from github May 21, 2018
@bastelfreak
Copy link
Member Author

nope, all good!

@bastelfreak bastelfreak merged commit dcdbfd7 into voxpupuli:master May 21, 2018
@bastelfreak bastelfreak deleted the refactoring branch May 21, 2018 15:52
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.

2 participants