Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

replace validate_* methods with datatypes #77

Merged
merged 7 commits into from
Jun 6, 2017

Conversation

bastelfreak
Copy link
Contributor

No description provided.

Copy link
Contributor

@igalic igalic left a 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)

Optional[Variant[Boolean, Enum[':really']]] $verbose = undef,
Optional[Boolean] $update_sources = undef,
Optional[Boolean] $backtrace = undef,
$gempath = undef,
Copy link
Contributor

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?

$gemrc = $::ruby::params::gemrc,
$owner = 'root',
$group = 'root',
$mode = '0644',
Copy link
Contributor

Choose a reason for hiding this comment

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

Pattern[[0-7]{4}]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

$gem_command = undef,
$gemrc = $::ruby::params::gemrc,
$owner = 'root',
$group = 'root',
Copy link
Contributor

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]

@hunner hunner merged commit 5f668bb into puppetlabs-toy-chest:master Jun 6, 2017
hunner added a commit that referenced this pull request Jun 6, 2017
@bastelfreak bastelfreak deleted the puppet4 branch June 6, 2017 21:51
@tux-o-matic
Copy link

@bastelfreak using Enum on Ruby dev package ensure is too restrictive. Some use cases requires ensure to be set to a specific version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants