beaker_puppet_helpers 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4d4e63615ac64312d0629aa6845bc1b48717317b9279918fbdb41f7f58cbb88
4
- data.tar.gz: 38ccbc1d294f2d73616866d06c3d2cbf7101611998180d8ced901b61a98ce680
3
+ metadata.gz: 96b07dc57cf6ef1d1321846d99f810b208ec187cae8fcbb9f9671a7cb00684d5
4
+ data.tar.gz: 71d45ebf93c52dd19cf097d828487148190ffe249a52ba44fdf0b369642d9347
5
5
  SHA512:
6
- metadata.gz: 94c853ad79f8c90f41aa0832db6eadaf75f92584d74412a95e326098d78e6ab4357de513c577e96c364d04138f90286bddd965712a78b9c4f2ab94118fa3b898
7
- data.tar.gz: 264e3ce0e6394719acb3146248ea1868bce207499d5e45d6ae065a8134879e90b0af3839cadd57d75d62e493562cdbcc50bba87d08b473408987a7f0046b4410
6
+ metadata.gz: d2a513bb98b4908fa0563adc2afd8d1e187db0f3ae79de0871a62a5d4db13c35fe5ee8c792a5f8f14c3c3eb6104c4ed6c47e175b8318097359dfbc2293ebeb8c
7
+ data.tar.gz: cb55fb6ce9dc07741e88b30ea2e3497a24ecc1c5f34c31850609923b505f0d70c1cac195716489154ffbc6b5584f4fb949d4fa0a1e53f4f317f2c48b28108bf1
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [2.2.0](https://github.com/voxpupuli/beaker_puppet_helpers/tree/2.2.0) (2025-03-19)
6
+
7
+ [Full Changelog](https://github.com/voxpupuli/beaker_puppet_helpers/compare/2.1.0...2.2.0)
8
+
9
+ **Implemented enhancements:**
10
+
11
+ - Support the none collection in implementation helpers [\#62](https://github.com/voxpupuli/beaker_puppet_helpers/pull/62) ([ekohl](https://github.com/ekohl))
12
+
5
13
  ## [2.1.0](https://github.com/voxpupuli/beaker_puppet_helpers/tree/2.1.0) (2025-03-19)
6
14
 
7
15
  [Full Changelog](https://github.com/voxpupuli/beaker_puppet_helpers/compare/2.0.0...2.1.0)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'beaker_puppet_helpers'
5
- s.version = '2.1.0'
5
+ s.version = '2.2.0'
6
6
  s.authors = ['Vox Pupuli']
7
7
  s.email = ['voxpupuli@groups.io']
8
8
  s.homepage = 'https://github.com/voxpupuli/beaker_puppet_helpers'
@@ -27,7 +27,11 @@ module BeakerPuppetHelpers
27
27
  # The used collection (puppet7, openvox8...)
28
28
  # @return [String] the implementation
29
29
  def self.implementation_from_collection(collection)
30
- collection.gsub(/\d+/, '')
30
+ if collection == 'none'
31
+ 'puppet'
32
+ else
33
+ collection.gsub(/\d+/, '')
34
+ end
31
35
  end
32
36
 
33
37
  # Install official Puppet release repository configuration on host(s).
@@ -111,11 +115,14 @@ module BeakerPuppetHelpers
111
115
  # @param [Beaker::Host] host
112
116
  # The host to act on
113
117
  # @param collection
114
- # The used collection (puppet7, openvox8...)
115
- # @param [Boolean] prefer_aio
116
- # Whether to prefer AIO packages or OS packages
118
+ # The used collection (none, puppet7, openvox8, ...)
119
+ # @param [Optional[Boolean]] prefer_aio
120
+ # Whether to prefer AIO packages or OS packages. If not specified, it's
121
+ # derived from the collection
117
122
  # @return [String] the package name
118
- def self.collection2packagename(host, collection, prefer_aio: true)
123
+ def self.collection2packagename(host, collection, prefer_aio: nil)
124
+ prefer_aio = collection != 'none' if prefer_aio.nil?
125
+
119
126
  implementation = implementation_from_collection(collection)
120
127
  package_name(host, prefer_aio: prefer_aio, implementation: implementation)
121
128
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker_puppet_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vox Pupuli