vanagon 0.42.0 → 0.43.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6124c941f058f16b94d91df59c931cb9c53717b3968d455ecccb77a47def3374
4
- data.tar.gz: fcf11d725a1920d08eb5119ef9ada27cafb076ff5e28a2b1cb4e672996a3c656
3
+ metadata.gz: db6bbca78a910b41075dc50bccc92e3088ffc4a076b58543feff84ec809b59dc
4
+ data.tar.gz: ada82f3362eaab0c8ee9b5248c3f3e17d1660276ed9c6328a1a9d38a9575fe38
5
5
  SHA512:
6
- metadata.gz: f6241005f7a94f68bfd385e00ac25d8ded7bfaa980e61dc1074f54a4c2411c0abda93aa73ecc542a387c88b127e076c8d37a5e907cc96333c3b538c51d4f3730
7
- data.tar.gz: 9ecf812ede9986b0860e58996072b068acb3f4f6a5cf17ccf52bd09f88ce43dc39b09134ef2c8665998d965670d301a7813dab62997bff8d8163edddd203774e
6
+ metadata.gz: 5271dfd756bf4ca321b56124402d81e0ab235aca51554b278b770a9942a0a251307141f58b6d0f7ea92fa969c72b4f21e67f5e353dcdfb2eab0fb22b5d9f50fd
7
+ data.tar.gz: 30ff287725847bb4949d3f782724163169e2f3e42eb3de04c6ff42ca1260c11f728b2073d7e1dda9b8c91109b8af1bb50a46b6c7ffd254e21f7557e4f805e02c
@@ -380,6 +380,13 @@ class Vanagon
380
380
  return !!@name.match(/^fedora-.*$/)
381
381
  end
382
382
 
383
+ # Utility matcher to determine is the platform is a amazon linux variety
384
+ #
385
+ # @return [true, false] true if it is a amazon linux variety, false otherwise
386
+ def is_amazon?
387
+ return !!@name.match(/^amazon-.*$/)
388
+ end
389
+
383
390
  # Utility matcher to determine is the platform is a debian variety
384
391
  #
385
392
  # @return [true, false] true if it is a debian variety, false otherwise
@@ -81,7 +81,7 @@ Requires: <%= requires.requirement %><%= requires.version ? " #{requires.versio
81
81
  # did not specify a dependency on these.
82
82
  # In the future, we will supress pre/post scripts completely if there's nothing
83
83
  # specified by the project or the components.
84
- <%- if @platform.is_fedora? || (@platform.is_el? && @platform.os_version.to_i >= 9) -%>
84
+ <%- if @platform.is_fedora? || @platform.is_amazon? || (@platform.is_el? && @platform.os_version.to_i >= 9) -%>
85
85
  Requires(pre): /usr/bin/mkdir
86
86
  Requires(pre): /usr/bin/touch
87
87
  Requires(post): /usr/bin/mkdir
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vanagon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.42.0
4
+ version: 0.43.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet By Perforce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-09 00:00:00.000000000 Z
11
+ date: 2023-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt