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

Add "checksum" option for slave-jar remote_file resource #12

Merged
merged 1 commit into from
Aug 23, 2018

Conversation

yang-zhang-2403
Copy link

Description

It is not a good practice to apply remote_file resource without
checksum.

Issues Resolved

This commit will allow end user to add valid checksum value for slave.jar

Check List

It is not a good practice to apply remote_file resource without
checksum, add this option here to allow end users add valid one.
# @return [String]
#
def slave_jar_checksum
@slave_jar_checksum ||= new_resource.checksum

Choose a reason for hiding this comment

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

What if new_resource.checksum is nil?
FYI cdacfb2

@@ -211,6 +220,7 @@ def slave_jar_resource
build_resource(:remote_file, slave_jar).tap do |r|
# We need to use .tap() to access methods in the provider's scope.
r.source slave_jar_url
r.checksum slave_jar_checksum

Choose a reason for hiding this comment

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

same here

@yetanotherion yetanotherion merged commit b5e44be into master Aug 23, 2018
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