vanagon 0.42.0 → 0.43.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 +4 -4
- data/lib/vanagon/platform.rb +7 -0
- data/resources/rpm/project.spec.erb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db6bbca78a910b41075dc50bccc92e3088ffc4a076b58543feff84ec809b59dc
|
|
4
|
+
data.tar.gz: ada82f3362eaab0c8ee9b5248c3f3e17d1660276ed9c6328a1a9d38a9575fe38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5271dfd756bf4ca321b56124402d81e0ab235aca51554b278b770a9942a0a251307141f58b6d0f7ea92fa969c72b4f21e67f5e353dcdfb2eab0fb22b5d9f50fd
|
|
7
|
+
data.tar.gz: 30ff287725847bb4949d3f782724163169e2f3e42eb3de04c6ff42ca1260c11f728b2073d7e1dda9b8c91109b8af1bb50a46b6c7ffd254e21f7557e4f805e02c
|
data/lib/vanagon/platform.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2023-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: docopt
|