-
Notifications
You must be signed in to change notification settings - Fork 91
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 #51 possibility to add checksum #80
Conversation
@@ -41,4 +41,5 @@ | |||
$nexus_data_folder = undef | |||
$download_folder = '/srv' | |||
$manage_config = true | |||
$md5sum = '' |
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.
Why does this default to empty string instead of undef?
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.
You're right the undef value is better. I change it!
@@ -24,6 +24,7 @@ | |||
'revision' => '01', | |||
'version' => '2.11.2', | |||
'download_folder' => '/srv', | |||
'md5sum' => '', |
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.
is this supposed to be undef now?
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.
You are almost right.
md5sum can not be used with undef value, that will cause during test:
ruby -c spec/classes/package_spec.rb
spec/classes/package_spec.rb:27: syntax error, unexpected keyword_undef
'md5sum' => undef,
^
spec/classes/package_spec.rb:115: syntax error, unexpected keyword_end, expecting '}'
rake aborted!
Command failed with status (1): [ruby -c spec/classes/package_spec.rb...]
caused by undef can not be used in hash
The empty value is used to be compatible with strict mode during the test
lgtm |
New feature to set the checksum.
To use you must use the optional parameter
md5sum
For example