TheKevJames / puppet-homebrew

homebrew (+brewcask! +taps!) package installer and provider
https://forge.puppet.com/thekevjames/homebrew
Apache License 2.0
18 stars 44 forks source link

Allow the use of version parameter #81

Closed jordigg closed 6 years ago

jordigg commented 7 years ago

Brew allows now to install specific versions. Should we provide a parameter instead of asking the user to provide the name of the package with the versioning included? https://github.com/Homebrew/brew/issues/620

TheKevJames commented 7 years ago

I've never actually bothered pinning a version, so let me know if I'm wrong, but shouldn't the code here manage this? Usage should be as it is in default puppet package modules, ie.

package { "curl":
    ensure   => "v42",
    provider => "brew",
}

That said, it might be worth documenting this and adding a test.