runcible 0.2.0 → 0.2.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.
@@ -117,6 +117,13 @@ module Runcible
117
117
  unit_copy(destination_repo_id, source_repo_id, payload)
118
118
  end
119
119
 
120
+ def self.package_group_copy(source_repo_id, destination_repo_id, optional={})
121
+ criteria = {:type_ids => [Runcible::Extensions::PackageGroup::TYPE], :filters => {}}
122
+ criteria[:filters][:unit] = { :id=>{ '$in' => optional[:package_group_ids] } } if optional[:package_group_ids]
123
+ payload = {:criteria => criteria}
124
+ unit_copy(destination_repo_id, source_repo_id, payload)
125
+ end
126
+
120
127
  def self.distribution_remove(repo_id, distribution_id)
121
128
  criteria = {:type_ids => ['distribution'], :filters => {}}
122
129
  criteria[:filters][:unit] = { :id=>{ '$in' => [distribution_id] } }
@@ -1,3 +1,3 @@
1
1
  module Runcible
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runcible
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Eric D Helms
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-11-19 00:00:00 Z
18
+ date: 2012-11-29 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Exposing Pulp's juiciest components to the Ruby world.
@@ -29,29 +29,29 @@ extra_rdoc_files: []
29
29
 
30
30
  files:
31
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
32
41
  - lib/runcible/base.rb
42
+ - lib/runcible/version.rb
33
43
  - lib/runcible/extensions/consumer_group.rb
34
- - lib/runcible/extensions/consumer.rb
35
- - lib/runcible/extensions/rpm.rb
36
- - lib/runcible/extensions/errata.rb
37
44
  - lib/runcible/extensions/repository.rb
38
45
  - lib/runcible/extensions/package_category.rb
39
46
  - lib/runcible/extensions/yum_importer.rb
47
+ - lib/runcible/extensions/consumer.rb
48
+ - lib/runcible/extensions/package_group.rb
49
+ - lib/runcible/extensions/yum_distributor.rb
40
50
  - lib/runcible/extensions/importer.rb
41
51
  - lib/runcible/extensions/distributor.rb
52
+ - lib/runcible/extensions/rpm.rb
42
53
  - lib/runcible/extensions/distribution.rb
43
- - lib/runcible/extensions/yum_distributor.rb
44
- - lib/runcible/extensions/package_group.rb
45
- - lib/runcible/resources/task.rb
46
- - lib/runcible/resources/consumer_group.rb
47
- - lib/runcible/resources/consumer.rb
48
- - lib/runcible/resources/repository_schedule.rb
49
- - lib/runcible/resources/user.rb
50
- - lib/runcible/resources/repository.rb
51
- - lib/runcible/resources/role.rb
52
- - lib/runcible/resources/unit.rb
53
- - lib/runcible/resources/event_notifier.rb
54
- - lib/runcible/version.rb
54
+ - lib/runcible/extensions/errata.rb
55
55
  homepage: https://github.com/Katello/runcible
56
56
  licenses: []
57
57
 
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements: []
82
82
 
83
83
  rubyforge_project:
84
- rubygems_version: 1.8.24
84
+ rubygems_version: 1.8.11
85
85
  signing_key:
86
86
  specification_version: 3
87
87
  summary: ""