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: a2ad70b36f731862abdf0f18de0de23fcf7eee16
4
- data.tar.gz: 6a13bda5d4880949bb056614f9828d4f772dc317
3
+ metadata.gz: 2179295a5e9f49e4fe5d9daa07b714f2c4640607
4
+ data.tar.gz: cbfdf251afb5b6992a7baf03651784f54b0a7974
5
5
  SHA512:
6
- metadata.gz: a9be55e2fd318b0d730d4837af5d780d2fcc89f3bc9a779064625c7bda1942efac4b94b8b8285b7268e6874c4bbbd84e1468eb420aa121a3858bafdd1500393a
7
- data.tar.gz: 01fb56615dc1838f50c0c8cbae9f118f6c90b3d2787e080c0e9b2f21214dba2a0a975cfe099bc70896e60f78c26658f89b9ebf6332ac5db637dd69d9fd227c37
6
+ metadata.gz: 3618be43b10cfe80bb2cb99dffacd86cf98a76c618841b9c68699e4f836e7adc43b5efb61d2113ebc3129a4efb43d1ae276f36f2dbddccbbf1ca5d0068f5010c
7
+ data.tar.gz: 6f1c491291f0f4b1271b8a3cd95ad63112c91b5802c74adba5156431834b249425c643cd859ced37f6236c6b7943e9fc9fe69f0e81a7bec00a51ff81e7b8f13a
@@ -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]
@@ -0,0 +1,9 @@
1
+ module Runcible
2
+ module Extensions
3
+ class DockerManifestList < Runcible::Extensions::Unit
4
+ def self.content_type
5
+ 'docker_manifest_list'
6
+ end
7
+ end
8
+ end
9
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Runcible
2
- VERSION = '2.1.0'.freeze
2
+ VERSION = '2.2.0'.freeze
3
3
  end
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.1.0
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-07-26 00:00:00.000000000 Z
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.6.8
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: