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

After download callback for artifact_package #107

Merged
merged 10 commits into from
Oct 31, 2013

Conversation

aaronfeng
Copy link
Contributor

Call the after_download proc if an artifact has been downloaded, otherwise it's not called.

@KAllan357
Copy link
Contributor

Do you think this would be helpful if it was exposed to the artifact_deploy resource as well?

I think you'd just want to pass it through on the artifact_file resources linked here - https://github.com/RiotGames/artifact-cookbook/blob/master/providers/deploy.rb#L542-L599

Can this have tests added? I think the test could be added in file.rb that can be run and verified by test-kitchen.

the original code assumed whatever value after
the extension is the version.  This is not
necessary true since the classifier can come
between the version and extension.
- included integration tests
# @param name [Symbol] the name of the proc to execute
#
# @return [void]
def execute_run_proc(from, resource, name)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to remove the from parameter and use #{__FILE__} to get us that extra bit of logging?

It might make it cleaner to have this method be called run_proc and then remove the private methods on the other classes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think you can if you want to preserve the same style of logging before.

@KAllan357
Copy link
Contributor

👍

KAllan357 added a commit that referenced this pull request Oct 31, 2013
After download callback for artifact_package
@KAllan357 KAllan357 merged commit 36c41ad into RiotGamesCookbooks:master Oct 31, 2013
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