mixlib-install 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/mixlib/install/backend/artifactory.rb +7 -2
- data/lib/mixlib/install/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87dfa89ef1371eab40d41a59503445ae02e47305
|
4
|
+
data.tar.gz: 20795a2be73611e6e4ebfd23de3871558f5593ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a514cfc57cdca321801d2dacf32b3fa3c57f5ec51f99bd492137aca5720e7163ae4159c5e16fe3aa9a9c635af7f9a395d58d7512b108e419daf5b547ccb8354c
|
7
|
+
data.tar.gz: 7fdae041f9eb488546c010e215d40e9f00eeba0d6247b2b35a3d0dd381744f2153a4b0a114507f46e206f7332b122c11af00dec238555e30dcfc116c9716a040
|
data/CHANGELOG.md
CHANGED
@@ -21,6 +21,7 @@ require "json"
|
|
21
21
|
require "mixlib/install/artifact_info"
|
22
22
|
require "artifactory"
|
23
23
|
require "mixlib/install/backend/base"
|
24
|
+
require "mixlib/install/product"
|
24
25
|
|
25
26
|
module Mixlib
|
26
27
|
class Install
|
@@ -70,7 +71,7 @@ module Mixlib
|
|
70
71
|
# Get the list of builds from the REST api.
|
71
72
|
# We do this because a user in the readers group does not have
|
72
73
|
# permissions to run aql against builds.
|
73
|
-
builds = client.get("/api/build/#{
|
74
|
+
builds = client.get("/api/build/#{package_name}")
|
74
75
|
|
75
76
|
if builds.nil?
|
76
77
|
raise NoArtifactsError, <<-MSG
|
@@ -112,7 +113,7 @@ Can not find any builds for #{options.product_name} in #{::Artifactory.endpoint}
|
|
112
113
|
results = artifactory_query(<<-QUERY
|
113
114
|
items.find(
|
114
115
|
{"repo": "omnibus-#{options.channel}-local"},
|
115
|
-
{"@omnibus.project": "#{
|
116
|
+
{"@omnibus.project": "#{package_name}"},
|
116
117
|
{"@omnibus.version": "#{version}"},
|
117
118
|
{"name": {"$nmatch": "*.metadata.json" }}
|
118
119
|
).include("repo", "path", "name", "property")
|
@@ -207,6 +208,10 @@ the endpoint is correct and there is an open connection to Chef's private networ
|
|
207
208
|
|
208
209
|
results
|
209
210
|
end
|
211
|
+
|
212
|
+
def package_name
|
213
|
+
@package_name ||= PRODUCT_MATRIX.lookup(options.product_name, options.product_version).package_name
|
214
|
+
end
|
210
215
|
end
|
211
216
|
end
|
212
217
|
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: 1.0.
|
4
|
+
version: 1.0.8
|
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: 2016-04-
|
12
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: artifactory
|