Skip to content

File_line checks provided after param if no match is found#431

Merged
underscorgan merged 2 commits intopuppetlabs:masterfrom
bmjen:file-line-refactor
Apr 9, 2015
Merged

File_line checks provided after param if no match is found#431
underscorgan merged 2 commits intopuppetlabs:masterfrom
bmjen:file-line-refactor

Conversation

@bmjen
Copy link
Copy Markdown
Contributor

@bmjen bmjen commented Apr 9, 2015

This is a refactor of PRs:
Closes #427
Closes #327
Closes #317

Refactor eliminates the need to rewrite the file twice.

Comment thread lib/puppet/provider/file_line/ruby.rb Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Want to use regex_after instead of resource[:after]?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

They would both logically be the same, nil or ! nil, just a matter of readability and preference I guess.

@bmjen bmjen force-pushed the file-line-refactor branch from c56c13f to f016cb3 Compare April 9, 2015 21:45
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know this is nitpicky, but the misalignment hurts my eyes. :(

Changed append line to open in 'w' mode and have to rewrite lines in order to append new line
@bmjen bmjen force-pushed the file-line-refactor branch from f016cb3 to 0af0d7e Compare April 9, 2015 22:24
underscorgan pushed a commit that referenced this pull request Apr 9, 2015
File_line checks provided after param if no match is found
@underscorgan underscorgan merged commit 5ee6e96 into puppetlabs:master Apr 9, 2015
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.

4 participants