runcible 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa61ed331487854ba6aa2914739fd80856d03591
4
- data.tar.gz: 5b3ade65b768e0304a89dfe826c83a378c249a48
3
+ metadata.gz: df76d4f3825b5d9756597e9884f76e5f723fbdf9
4
+ data.tar.gz: 0d3f2362cf58348a8f22d4cd076a590eafa20d05
5
5
  SHA512:
6
- metadata.gz: 120c8d0229e1e3fd352cbd47f3c764a7b41e050ac24e17ee8e7e5dbfebcc10ea6d756906951ebca1ec7211e2b2fd4a94a422e21553bc7c21e27dfb6ac386eaaa
7
- data.tar.gz: ece06e609cb189105612f083356eff7940939a61fa1f4448efb46627fc548717189fb6d78834d26d22386019054bd064c405dffb4a99a620c1cafdbbcf0e707b
6
+ metadata.gz: 608cf20eedfaf737fcf10a8d48960d7dcbbbbb1b44b037118209a7b6cb404ced9d5f7daa67d0d3301908fc89e0014a81eab2dc20e13e9c28bd95b9c6dabfd095
7
+ data.tar.gz: 3846d13597991f7deb0243baec3ca7c477e2424c8614a7b620cd7ba1fcd9478ca9ece028c4b34a9976c3690d6e953a94b840d5ac57d2ccc1a301973d52016950
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Exposing Pulp's juiciest parts. http://www.pulpproject.org/
6
6
 
7
- Latest Live Tested Version: **pulp-server-2.8.0-0.4.beta.el7.noarch**
7
+ Latest Live Tested Version: **pulp-server-2.8.0-0.7.beta.el7.noarch**
8
8
 
9
9
  Current stable Runcible: https://github.com/Katello/runcible/tree/0.3
10
10
 
@@ -240,6 +240,26 @@ module Runcible
240
240
  unit_search(id, criteria).map { |i| i['metadata'].with_indifferent_access }
241
241
  end
242
242
 
243
+ # Retrieves the ostree branch IDs for a single repository
244
+ #
245
+ # @param [String] id the ID of the repository
246
+ # @return [RestClient::Response] the set of repository ostree branch IDs
247
+ def ostree_branch_ids(id)
248
+ criteria = {:type_ids => [Runcible::Extensions::OstreeBranch.content_type],
249
+ :fields => {:unit => [], :association => ['unit_id']}}
250
+
251
+ unit_search(id, criteria).map { |i| i['unit_id'] }
252
+ end
253
+
254
+ # Retrieves the ostree branches for a single repository
255
+ #
256
+ # @param [String] id the ID of the repository
257
+ # @return [RestClient::Response] the set of repository ostree branches
258
+ def ostree_branches(id)
259
+ criteria = {:type_ids => [Runcible::Extensions::OstreeBranch.content_type]}
260
+ unit_search(id, criteria).map { |i| i['metadata'].with_indifferent_access }
261
+ end
262
+
243
263
  # Retrieves the docker manifest IDs for a single repository
244
264
  #
245
265
  # @param [String] id the ID of the repository
@@ -19,6 +19,7 @@ module Runcible
19
19
 
20
20
  def config
21
21
  to_ret = self.as_json
22
+ to_ret.delete('absolute_path') if absolute_path.nil?
22
23
  to_ret.delete('auto_publish')
23
24
  to_ret.delete('id')
24
25
  to_ret
@@ -1,3 +1,3 @@
1
1
  module Runcible
2
- VERSION = '1.6.0'
2
+ VERSION = '1.7.0'
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: 1.6.0
4
+ version: 1.7.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: 2016-02-04 00:00:00.000000000 Z
11
+ date: 2016-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json