-
-
Notifications
You must be signed in to change notification settings - Fork 243
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
Conversation
- 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
There was a problem hiding this 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.
This comment was marked as outdated.
Sorry, something went wrong.
@@ -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.
This comment was marked as outdated.
Sorry, something went wrong.
Foodcritic violations have been fixed by another review :) |
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. |
Cc. @aboten