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

Fix foodcritic violations #456

Closed
wants to merge 1 commit into from

Conversation

Annih
Copy link
Contributor

@Annih Annih commented Jul 17, 2017

  • Use proper license name
  • Use converge_by instead of updated_by_last_action
  • Use platform introspection DSL when possible
  • Ignore FC028 when DSL is not usable due to poise inversion

Cc. @aboten

@Annih Annih changed the title Fix foodcritic violation Fix foodcritic violations Jul 17, 2017
- Use proper license name
- Use converge_by instead of updated_by_last_action
- Use platform introspection DSL when possible
- Ignore FC028 when DSL is not usable due to poise inversion
@sous-chefs sous-chefs deleted a comment from codecov-io Jul 19, 2017
Copy link
Contributor

@legal90 legal90 left a comment

Choose a reason for hiding this comment

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

Hi @Annih,
Thank you for your contribution! I have some notes, which I've added to the review.

@@ -32,7 +32,7 @@ def self.provides_auto?(_node, _resource)
# @return [Hash]
# @api private
def self.default_inversion_options(node, resource)
extract_path = node.platform_family?('windows') ? node.config_prefix_path : '/opt/consul'
extract_path = windows? ? node.config_prefix_path : '/opt/consul'

This comment was marked as outdated.

@@ -9,7 +9,7 @@
poise_service_user node['consul']['service_user'] do
group node['consul']['service_group']
shell node['consul']['service_shell'] unless node['consul']['service_shell'].nil?
not_if { node.platform_family?('windows') }

This comment was marked as outdated.

@Annih
Copy link
Contributor Author

Annih commented Aug 8, 2017

Foodcritic violations have been fixed by another review :)

@Annih Annih closed this Aug 8, 2017
@Annih Annih deleted the fix_foodcritic branch August 8, 2017 20:25
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants