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

require_relative libraries modules #141

Closed
wants to merge 1 commit into from
Closed

Conversation

wrightp
Copy link

@wrightp wrightp commented Mar 24, 2017

Signed-off-by: Patrick Wright [email protected]

Description

This PR is a backup plan to getting the shd pipelines to work with the latest chef-ingredient. Technically, the code is to spec.

Note that the Helpers module loads fine which is loaded before the Handlers.

Issues Resolved

#140

Check List

Signed-off-by: Patrick Wright <[email protected]>
@@ -52,14 +52,17 @@
platform_family = node['platform_family']

action_class do
require_relative '../libraries/helpers'
Copy link
Contributor

Choose a reason for hiding this comment

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

Style-wise we should always put requires at the top of the file.

Copy link
Author

Choose a reason for hiding this comment

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

Not according to our custom resource docs. All modules in libraries are auto-loaded. Is there a style guide you are referring to?

@wrightp
Copy link
Author

wrightp commented Mar 27, 2017

I'm deleting this PR for now as not to cause any confusion why this PR was even created.

@wrightp wrightp closed this Mar 27, 2017
@tas50 tas50 deleted the pw/require-handlers branch November 30, 2017 18:00
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