wjordan-mixlib-install 0.8.0.alpha.6 → 0.8.0.fork.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mixlib/install.rb +7 -3
- data/lib/mixlib/install/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d0824f1a03fe613c10e0ee60a44cde61fe9c974
|
4
|
+
data.tar.gz: c56f5a828e41b58fe8f37592a8c66efc372a02a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00c1b9c6b1715a49c2f03f02eb3ffd448171835f32c931d58c05faf8bb182d57253428e59ce0c270ae303b2e3c3f41e6b74d401f3bdbfee771f7644277596c5b
|
7
|
+
data.tar.gz: b12381cf602c6fb9989bec5eda25f57c338fdb62ec54ae4a348a7b0212c53e8f9b9ac2af0e1ba1911d03703bcb727f86dfbb687403a9961b596b772a55a1e788
|
data/lib/mixlib/install.rb
CHANGED
@@ -37,8 +37,10 @@ module Mixlib
|
|
37
37
|
#
|
38
38
|
# Fetch artifact metadata information
|
39
39
|
#
|
40
|
-
# @return [ArtifactInfo] fetched artifact data
|
41
|
-
#
|
40
|
+
# @return [Array<ArtifactInfo>] list of fetched artifact data for the configured
|
41
|
+
# channel, product name, and product version.
|
42
|
+
# @return [ArtifactInfo] fetched artifact data for the configured
|
43
|
+
# channel, product name, product version and platform info
|
42
44
|
def artifact_info
|
43
45
|
Backend.info(options)
|
44
46
|
end
|
@@ -94,7 +96,9 @@ module Mixlib
|
|
94
96
|
def upgrade_available?
|
95
97
|
return true if current_version.nil?
|
96
98
|
|
97
|
-
|
99
|
+
artifact = artifact_info
|
100
|
+
artifact = artifact.first if artifact.is_a? Array
|
101
|
+
available_ver = Mixlib::Versioning.parse(artifact.version)
|
98
102
|
current_ver = Mixlib::Versioning.parse(current_version)
|
99
103
|
(available_ver > current_ver)
|
100
104
|
end
|