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

Update from puppet-community modulesync_configs #134

Merged
merged 1 commit into from
Oct 18, 2015
Merged

Update from puppet-community modulesync_configs #134

merged 1 commit into from
Oct 18, 2015

Conversation

jyaworski
Copy link
Member

#133 changes

Tag @liamjbennett.

(If you're at Puppetconf, I'm by @igalic)

@liamjbennett
Copy link
Member

I think this is failing because the tests are missing the :puppetversion fact. You should be able to rebase on master to fix this.

@jyaworski
Copy link
Member Author

I rebased; it looks like it's more fundamental than that.

@jyaworski
Copy link
Member Author

Rubocop stuff, after merging @igalic's work. I'll work on this sometime next week likely.

@igalic
Copy link
Contributor

igalic commented Oct 9, 2015

i suggest you start with (a couple of iterations of) rubocop -a

@liamjbennett
Copy link
Member

Having just run this and seen how much work is involved in cleaning up my bad code. I just wanted to jump on this ticket and thank you @jyaworski for doing the hard work here.

@igalic
Copy link
Contributor

igalic commented Oct 11, 2015

💜 y'all!

@igalic
Copy link
Contributor

igalic commented Oct 13, 2015

as i've mentioned elsewhere, i'm not entirely happy with some of the formatting here…

@jyaworski
Copy link
Member Author

This is almost ready, with a lot of changes. We're still discussing on modulesync_config about rubocop, which is what's failing now.

@jyaworski
Copy link
Member Author

OK, this is finally ready. Once this is merged I'll look into adding the module to modulesync_config's managed_modules.

module Parser
# Functions
module Functions
newfunction(:validate_rd_policy, :doc => <<-'ENDHEREDOC') do |args|
Copy link
Contributor

Choose a reason for hiding this comment

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

aeehmpf.. please don't do this :O

what you actually should be doing is:

Puppet::Parser::Functions.newfunction(:validate_rd_policy,

thereby wholy removing one indentation level, rather than introducing three ;)

@igalic
Copy link
Contributor

igalic commented Oct 14, 2015

@jyaworski thank you so so much for making this effort
and sorry for not coming to your rescue any sooner (esp the module nesting thing…)
i'm starting to think that rubocop -a was very, very, very bad advise and i'm truly sorry.
@mkrakowitzer was very right about its readability :S

@jyaworski
Copy link
Member Author

I followed a bit of your suggestions, with pgrep and module nesting.

Do I need to do any more work here, or is this good to finally merge?

@jyaworski
Copy link
Member Author

@wcooley: can you take a look at #86 and fix this? It looks like puppet-augeas and puppet 4 don't play nicely.

@jyaworski
Copy link
Member Author

It looks like I had to install a few gems. It works locally, but fails on travis. Let me open another issue...

@jyaworski
Copy link
Member Author

All right! Good to go, finally. @igalic and @liamjbennett

nibalizer added a commit that referenced this pull request Oct 18, 2015
Update from puppet-community modulesync_configs
@nibalizer nibalizer merged commit a48ad3f into voxpupuli:master Oct 18, 2015
@nibalizer
Copy link
Member

/me breaks everything

yayyyy

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