mixlib-install 3.10.0 → 3.11.2

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: 407472a1b2344181b46f4af9bbf72e4752f0e14f8ee2a51e4011b176f38372d0
4
- data.tar.gz: e37d348ed08c6530c62c973f5c6a3f98245ff13de1860c76c38637e14aedc6ca
3
+ metadata.gz: e9a606a7e28832772a38e93bebd0436065203a9a5a1e519c7f653ff3f3d9a807
4
+ data.tar.gz: 46c71526acee3e61cff2117847b62487b41bb2b05b0e2c228944d76fc3a22a64
5
5
  SHA512:
6
- metadata.gz: 0a78fdf61ac0aed3c9fac2325e616062cdeebc5ed29d8bc783c9a8b22e1291a436c7fb0ddb7dc690e6189082ccbf14276e73bad17e298d60f6b4451793af0be3
7
- data.tar.gz: 31937366eb1139bcdac64d655f31f499a22e99d3660b19c3b630fb17936e1cb36032a8dcea11a2f236ccca44ac3214d79640782ad8ee0dc064ce9d4da981777c
6
+ metadata.gz: d1035dd59c985003766ea3fdb26b4b5f1d98ea4b9d15ea82a3308ec668733b5717f76cfe63e329a61c68afcb11a50de08a2b816c76fe5213eec2522307a2cba3
7
+ data.tar.gz: 5f4c7f9e1079283dbeaf30483c48e73ff720889a39bb829de4193e47b46c96c25b78fd15864a6758d272a4eda482cb1dce0dd746de55c9739bebea63b77881e4
@@ -47,14 +47,6 @@ elif test -f "/etc/redhat-release"; then
47
47
  platform=`sed 's/^\(.\+\) release.*/\1/' /etc/redhat-release | tr '[A-Z]' '[a-z]'`
48
48
  platform_version=`sed 's/^.\+ release \([.0-9]\+\).*/\1/' /etc/redhat-release`
49
49
 
50
- # If /etc/redhat-release exists, we act like RHEL by default
51
- if test "$platform" = "fedora"; then
52
- # FIXME: stop remapping fedora to el
53
- # FIXME: remove client side platform_version mangling and hard coded yolo
54
- # Change platform version for use below.
55
- platform_version="6.0"
56
- fi
57
-
58
50
  if test "$platform" = "xenserver"; then
59
51
  # Current XenServer 6.2 is based on CentOS 5, platform is not reset to "el" server should hanlde response
60
52
  platform="xenserver"
@@ -66,16 +58,15 @@ elif test -f "/etc/redhat-release"; then
66
58
  elif test -f "/etc/system-release"; then
67
59
  platform=`sed 's/^\(.\+\) release.\+/\1/' /etc/system-release | tr '[A-Z]' '[a-z]'`
68
60
  platform_version=`sed 's/^.\+ release \([.0-9]\+\).*/\1/' /etc/system-release | tr '[A-Z]' '[a-z]'`
69
- # amazon is built off of fedora, so act like RHEL
70
- # Version 1. Example: Amazon Linux AMI release 2017.09
71
- if test "$platform" = "amazon linux ami"; then
72
- platform="el"
73
- platform_version="6.0"
74
- # Version 2. Example: Amazon Linux release 2.0 (2017.12)
75
- elif test "$platform" = "amazon linux"; then
76
- platform="el"
77
- platform_version="7.0"
78
- fi
61
+ case $platform in amazon*) # sh compat method of checking for a substring
62
+ # use the version value out of /etc/os-release if available since it isn't regex fragile
63
+ platform="amazon"
64
+ if test -f "/etc/os-release"; then
65
+ . /etc/os-release
66
+ platform_version=$VERSION_ID
67
+ fi
68
+ esac
69
+
79
70
  # Apple OS X
80
71
  elif test -f "/usr/bin/sw_vers"; then
81
72
  platform="mac_os_x"
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "3.10.0"
3
+ VERSION = "3.11.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixlib-install
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.0
4
+ version: 3.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-05-10 00:00:00.000000000 Z
12
+ date: 2018-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mixlib-shellout