runcible 2.1.0 → 2.2.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2179295a5e9f49e4fe5d9daa07b714f2c4640607
|
4
|
+
data.tar.gz: cbfdf251afb5b6992a7baf03651784f54b0a7974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3618be43b10cfe80bb2cb99dffacd86cf98a76c618841b9c68699e4f836e7adc43b5efb61d2113ebc3129a4efb43d1ae276f36f2dbddccbbf1ca5d0068f5010c
|
7
|
+
data.tar.gz: 6f1c491291f0f4b1271b8a3cd95ad63112c91b5802c74adba5156431834b249425c643cd859ced37f6236c6b7943e9fc9fe69f0e81a7bec00a51ff81e7b8f13a
|
data/lib/runcible/base.rb
CHANGED
@@ -26,6 +26,7 @@ module Runcible
|
|
26
26
|
self.class.path(*args)
|
27
27
|
end
|
28
28
|
|
29
|
+
# rubocop:disable Metrics/AbcSize:
|
29
30
|
def call(method, path, options = {})
|
30
31
|
clone_config = self.config.clone
|
31
32
|
#on occation path will already have prefix (sync cancel)
|
@@ -43,6 +44,7 @@ module Runcible
|
|
43
44
|
client_options[:verify_ssl] = clone_config[:verify_ssl] unless clone_config[:verify_ssl].nil?
|
44
45
|
|
45
46
|
if clone_config[:oauth]
|
47
|
+
self.logger.warn('[DEPRECATION] Pulp oauth is deprecated. Please use cert_auth instead.')
|
46
48
|
headers = add_oauth_header(method, path, headers)
|
47
49
|
headers['pulp-user'] = clone_config[:user]
|
48
50
|
elsif clone_config[:cert_auth]
|
@@ -278,6 +278,26 @@ module Runcible
|
|
278
278
|
unit_search(id, criteria).map { |i| i['metadata'].with_indifferent_access }
|
279
279
|
end
|
280
280
|
|
281
|
+
# Retrieves the docker manifest list IDs for a single repository
|
282
|
+
#
|
283
|
+
# @param [String] id the ID of the repository
|
284
|
+
# @return [RestClient::Response] the set of repository docker manifest IDs
|
285
|
+
def docker_manifest_list_ids(id)
|
286
|
+
criteria = {:type_ids => [Runcible::Extensions::DockerManifestList.content_type],
|
287
|
+
:fields => {:unit => [], :association => ['unit_id']}}
|
288
|
+
|
289
|
+
unit_search(id, criteria).map { |i| i['unit_id'] }
|
290
|
+
end
|
291
|
+
|
292
|
+
# Retrieves the docker manifest lists for a single repository
|
293
|
+
#
|
294
|
+
# @param [String] id the ID of the repository
|
295
|
+
# @return [RestClient::Response] the set of repository docker manifests
|
296
|
+
def docker_manifest_lists(id)
|
297
|
+
criteria = {:type_ids => [Runcible::Extensions::DockerManifestList.content_type]}
|
298
|
+
unit_search(id, criteria).map { |i| i['metadata'].with_indifferent_access }
|
299
|
+
end
|
300
|
+
|
281
301
|
# Retrieves the docker tag IDs for a single repository
|
282
302
|
#
|
283
303
|
# @param [String] id the ID of the repository
|
data/lib/runcible/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runcible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric D Helms, Justin Sherrill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- lib/runcible/extensions/distribution.rb
|
134
134
|
- lib/runcible/extensions/docker_image.rb
|
135
135
|
- lib/runcible/extensions/docker_manifest.rb
|
136
|
+
- lib/runcible/extensions/docker_manifest_list.rb
|
136
137
|
- lib/runcible/extensions/docker_tag.rb
|
137
138
|
- lib/runcible/extensions/errata.rb
|
138
139
|
- lib/runcible/extensions/file.rb
|
@@ -198,8 +199,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
199
|
version: '0'
|
199
200
|
requirements: []
|
200
201
|
rubyforge_project:
|
201
|
-
rubygems_version: 2.
|
202
|
+
rubygems_version: 2.4.8
|
202
203
|
signing_key:
|
203
204
|
specification_version: 4
|
204
205
|
summary: ''
|
205
206
|
test_files: []
|
207
|
+
has_rdoc:
|