runcible 0.3 → 0.3.1
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.
- data/lib/runcible/extensions/unit.rb +4 -4
- data/lib/runcible/version.rb +1 -1
- metadata +55 -35
|
@@ -43,7 +43,7 @@ module Runcible
|
|
|
43
43
|
# @param [Array] id the content ID of the content to retrieve
|
|
44
44
|
# @return [RestClient::Response] the requested content
|
|
45
45
|
def self.find(id, optional={})
|
|
46
|
-
optional
|
|
46
|
+
optional[:include_repos] ||= true
|
|
47
47
|
find_all([id], optional).first
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -52,7 +52,7 @@ module Runcible
|
|
|
52
52
|
# @param [Array] ids list of content IDs to retrieve
|
|
53
53
|
# @return [RestClient::Response] list of content
|
|
54
54
|
def self.find_all(ids, optional={})
|
|
55
|
-
optional
|
|
55
|
+
optional[:include_repos] ||= true
|
|
56
56
|
self.search(content_type, { :filters => {'id'=> {'$in'=> ids}} }, optional)
|
|
57
57
|
end
|
|
58
58
|
|
|
@@ -61,7 +61,7 @@ module Runcible
|
|
|
61
61
|
# @param [Array] id the unit ID of the content to retrieve
|
|
62
62
|
# @return [RestClient::Response] the requested content
|
|
63
63
|
def self.find_by_unit_id(id, optional={})
|
|
64
|
-
optional
|
|
64
|
+
optional[:include_repos] ||= true
|
|
65
65
|
find_all_by_unit_ids([id], optional).first
|
|
66
66
|
end
|
|
67
67
|
|
|
@@ -70,7 +70,7 @@ module Runcible
|
|
|
70
70
|
# @param [Array] ids list of content unit IDs to retrieve
|
|
71
71
|
# @return [RestClient::Response] list of content
|
|
72
72
|
def self.find_all_by_unit_ids(ids, optional={})
|
|
73
|
-
optional
|
|
73
|
+
optional[:include_repos] ||= true
|
|
74
74
|
self.search(content_type, { :filters => {:_id=> {'$in'=> ids}} }, optional)
|
|
75
75
|
end
|
|
76
76
|
|
data/lib/runcible/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,71 +1,91 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runcible
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease:
|
|
6
|
+
segments:
|
|
7
|
+
- 0
|
|
8
|
+
- 3
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.3.1
|
|
6
11
|
platform: ruby
|
|
7
|
-
authors:
|
|
12
|
+
authors:
|
|
8
13
|
- Eric D Helms
|
|
9
14
|
autorequire:
|
|
10
15
|
bindir: bin
|
|
11
16
|
cert_chain: []
|
|
12
|
-
|
|
17
|
+
|
|
18
|
+
date: 2013-01-16 00:00:00 Z
|
|
13
19
|
dependencies: []
|
|
20
|
+
|
|
14
21
|
description: Exposing Pulp's juiciest components to the Ruby world.
|
|
15
|
-
email:
|
|
22
|
+
email:
|
|
16
23
|
- ehelms@redhat.com
|
|
17
24
|
executables: []
|
|
25
|
+
|
|
18
26
|
extensions: []
|
|
27
|
+
|
|
19
28
|
extra_rdoc_files: []
|
|
20
|
-
|
|
29
|
+
|
|
30
|
+
files:
|
|
21
31
|
- lib/runcible.rb
|
|
32
|
+
- lib/runcible/resources/role.rb
|
|
33
|
+
- lib/runcible/resources/unit.rb
|
|
34
|
+
- lib/runcible/resources/consumer_group.rb
|
|
35
|
+
- lib/runcible/resources/user.rb
|
|
36
|
+
- lib/runcible/resources/task.rb
|
|
37
|
+
- lib/runcible/resources/repository.rb
|
|
38
|
+
- lib/runcible/resources/event_notifier.rb
|
|
39
|
+
- lib/runcible/resources/consumer.rb
|
|
40
|
+
- lib/runcible/resources/repository_schedule.rb
|
|
22
41
|
- lib/runcible/base.rb
|
|
42
|
+
- lib/runcible/version.rb
|
|
43
|
+
- lib/runcible/extensions/unit.rb
|
|
23
44
|
- lib/runcible/extensions/consumer_group.rb
|
|
24
|
-
- lib/runcible/extensions/consumer.rb
|
|
25
|
-
- lib/runcible/extensions/rpm.rb
|
|
26
|
-
- lib/runcible/extensions/errata.rb
|
|
27
45
|
- lib/runcible/extensions/repository.rb
|
|
28
46
|
- lib/runcible/extensions/package_category.rb
|
|
29
47
|
- lib/runcible/extensions/yum_importer.rb
|
|
48
|
+
- lib/runcible/extensions/consumer.rb
|
|
49
|
+
- lib/runcible/extensions/package_group.rb
|
|
50
|
+
- lib/runcible/extensions/yum_distributor.rb
|
|
30
51
|
- lib/runcible/extensions/importer.rb
|
|
31
|
-
- lib/runcible/extensions/unit.rb
|
|
32
52
|
- lib/runcible/extensions/distributor.rb
|
|
53
|
+
- lib/runcible/extensions/rpm.rb
|
|
33
54
|
- lib/runcible/extensions/distribution.rb
|
|
34
|
-
- lib/runcible/extensions/
|
|
35
|
-
- lib/runcible/extensions/package_group.rb
|
|
36
|
-
- lib/runcible/resources/task.rb
|
|
37
|
-
- lib/runcible/resources/consumer_group.rb
|
|
38
|
-
- lib/runcible/resources/consumer.rb
|
|
39
|
-
- lib/runcible/resources/repository_schedule.rb
|
|
40
|
-
- lib/runcible/resources/user.rb
|
|
41
|
-
- lib/runcible/resources/repository.rb
|
|
42
|
-
- lib/runcible/resources/role.rb
|
|
43
|
-
- lib/runcible/resources/unit.rb
|
|
44
|
-
- lib/runcible/resources/event_notifier.rb
|
|
45
|
-
- lib/runcible/version.rb
|
|
55
|
+
- lib/runcible/extensions/errata.rb
|
|
46
56
|
homepage: https://github.com/Katello/runcible
|
|
47
57
|
licenses: []
|
|
58
|
+
|
|
48
59
|
post_install_message:
|
|
49
60
|
rdoc_options: []
|
|
50
|
-
|
|
61
|
+
|
|
62
|
+
require_paths:
|
|
51
63
|
- lib
|
|
52
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
53
65
|
none: false
|
|
54
|
-
requirements:
|
|
55
|
-
- -
|
|
56
|
-
- !ruby/object:Gem::Version
|
|
57
|
-
|
|
58
|
-
|
|
66
|
+
requirements:
|
|
67
|
+
- - ">="
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
hash: 3
|
|
70
|
+
segments:
|
|
71
|
+
- 0
|
|
72
|
+
version: "0"
|
|
73
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
74
|
none: false
|
|
60
|
-
requirements:
|
|
61
|
-
- -
|
|
62
|
-
- !ruby/object:Gem::Version
|
|
63
|
-
|
|
75
|
+
requirements:
|
|
76
|
+
- - ">="
|
|
77
|
+
- !ruby/object:Gem::Version
|
|
78
|
+
hash: 3
|
|
79
|
+
segments:
|
|
80
|
+
- 0
|
|
81
|
+
version: "0"
|
|
64
82
|
requirements: []
|
|
83
|
+
|
|
65
84
|
rubyforge_project:
|
|
66
85
|
rubygems_version: 1.8.24
|
|
67
86
|
signing_key:
|
|
68
87
|
specification_version: 3
|
|
69
|
-
summary:
|
|
88
|
+
summary: ""
|
|
70
89
|
test_files: []
|
|
90
|
+
|
|
71
91
|
has_rdoc:
|