-
Notifications
You must be signed in to change notification settings - Fork 85
replace validate_* methods with datatypes #77
Conversation
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.
(i haven't looked at the failing tests yet)
manifests/gemrc.pp
Outdated
Optional[Variant[Boolean, Enum[':really']]] $verbose = undef, | ||
Optional[Boolean] $update_sources = undef, | ||
Optional[Boolean] $backtrace = undef, | ||
$gempath = 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.
why don't we use Stdlib::Absolutepath here?
manifests/gemrc.pp
Outdated
$gemrc = $::ruby::params::gemrc, | ||
$owner = 'root', | ||
$group = 'root', | ||
$mode = '0644', |
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.
Pattern[[0-7]{4}]
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.
fixed
manifests/gemrc.pp
Outdated
$gem_command = undef, | ||
$gemrc = $::ruby::params::gemrc, | ||
$owner = 'root', | ||
$group = 'root', |
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.
These should all just be String
, except for gem_command
, which should be Optional[String]
@bastelfreak using Enum on Ruby dev package ensure is too restrictive. Some use cases requires ensure to be set to a specific version. |
No description provided.