runcible 0.4.6 → 0.4.7
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/Gemfile +1 -1
- data/lib/runcible/extensions/export_distributor.rb +63 -0
- data/lib/runcible/extensions/repository.rb +8 -0
- data/lib/runcible/version.rb +1 -1
- metadata +57 -61
data/Gemfile
CHANGED
@@ -0,0 +1,63 @@
|
|
1
|
+
# Copyright (c) 2013 Red Hat Inc.
|
2
|
+
#
|
3
|
+
# MIT License
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
# a copy of this software and associated documentation files (the
|
7
|
+
# "Software"), to deal in the Software without restriction, including
|
8
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
# the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be
|
14
|
+
# included in all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
|
24
|
+
require 'active_support/json'
|
25
|
+
require 'securerandom'
|
26
|
+
|
27
|
+
module Runcible
|
28
|
+
module Extensions
|
29
|
+
class ExportDistributor < Distributor
|
30
|
+
#required
|
31
|
+
attr_accessor "http", "https"
|
32
|
+
|
33
|
+
# Instantiates a export distributor
|
34
|
+
#
|
35
|
+
# @param [boolean] http serve the contents over http
|
36
|
+
# @param [boolean] https serve the contents over https
|
37
|
+
# @return [Runcible::Extensions::ExportDistributor]
|
38
|
+
def initialize(http, https)
|
39
|
+
@http = http
|
40
|
+
@https = https
|
41
|
+
# Pulp seems to expect the ID to be export_distributor, not a random
|
42
|
+
super({:id => self.type_id})
|
43
|
+
end
|
44
|
+
|
45
|
+
# Distributor Type id
|
46
|
+
#
|
47
|
+
# @return [string]
|
48
|
+
def type_id
|
49
|
+
'export_distributor'
|
50
|
+
end
|
51
|
+
|
52
|
+
# generate the pulp config for the export distributor
|
53
|
+
#
|
54
|
+
# @return [Hash]
|
55
|
+
def config
|
56
|
+
to_ret = self.as_json
|
57
|
+
to_ret.delete('auto_publish')
|
58
|
+
to_ret.delete('id')
|
59
|
+
to_ret
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -87,6 +87,14 @@ module Runcible
|
|
87
87
|
Runcible::Resources::Task.list(["pulp:repository:#{repo_id}", "pulp:action:sync"])
|
88
88
|
end
|
89
89
|
|
90
|
+
# Retrieves the publish status for a repository
|
91
|
+
#
|
92
|
+
# @param [String] repo_id the repository ID
|
93
|
+
# @return [RestClient::Response] a task representing the sync status
|
94
|
+
def self.publish_status(repo_id)
|
95
|
+
Runcible::Resources::Task.list(["pulp:repository:#{repo_id}", "pulp:action:publish"])
|
96
|
+
end
|
97
|
+
|
90
98
|
# Retrieves a set of repositories by their IDs
|
91
99
|
#
|
92
100
|
# @param [Array] repository_ids the repository ID
|
data/lib/runcible/version.rb
CHANGED
metadata
CHANGED
@@ -1,100 +1,96 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runcible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
5
|
-
prerelease:
|
4
|
+
version: 0.4.7
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Eric D Helms, Justin Sherrill
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
16
|
-
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
17
18
|
requirements:
|
18
|
-
- -
|
19
|
+
- - ! '>='
|
19
20
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
21
|
-
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
25
|
none: false
|
23
|
-
requirement: !ruby/object:Gem::Requirement
|
24
26
|
requirements:
|
25
|
-
- -
|
27
|
+
- - ! '>='
|
26
28
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
28
|
-
MA==
|
29
|
-
none: false
|
30
|
-
prerelease: false
|
31
|
-
type: :runtime
|
29
|
+
version: '0'
|
32
30
|
- !ruby/object:Gem::Dependency
|
33
31
|
name: rest-client
|
34
|
-
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
35
34
|
requirements:
|
36
|
-
- -
|
35
|
+
- - ! '>='
|
37
36
|
- !ruby/object:Gem::Version
|
38
37
|
version: 1.6.1
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
41
|
none: false
|
40
|
-
requirement: !ruby/object:Gem::Requirement
|
41
42
|
requirements:
|
42
|
-
- -
|
43
|
+
- - ! '>='
|
43
44
|
- !ruby/object:Gem::Version
|
44
45
|
version: 1.6.1
|
45
|
-
none: false
|
46
|
-
prerelease: false
|
47
|
-
type: :runtime
|
48
46
|
- !ruby/object:Gem::Dependency
|
49
47
|
name: oauth
|
50
|
-
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
51
50
|
requirements:
|
52
|
-
- -
|
51
|
+
- - ! '>='
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
55
|
-
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
57
|
none: false
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
MA==
|
63
|
-
none: false
|
64
|
-
prerelease: false
|
65
|
-
type: :runtime
|
61
|
+
version: '0'
|
66
62
|
- !ruby/object:Gem::Dependency
|
67
63
|
name: activesupport
|
68
|
-
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
69
66
|
requirements:
|
70
|
-
- -
|
67
|
+
- - ! '>='
|
71
68
|
- !ruby/object:Gem::Version
|
72
69
|
version: 3.0.10
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
|
-
requirement: !ruby/object:Gem::Requirement
|
75
74
|
requirements:
|
76
|
-
- -
|
75
|
+
- - ! '>='
|
77
76
|
- !ruby/object:Gem::Version
|
78
77
|
version: 3.0.10
|
79
|
-
none: false
|
80
|
-
prerelease: false
|
81
|
-
type: :runtime
|
82
78
|
- !ruby/object:Gem::Dependency
|
83
79
|
name: i18n
|
84
|
-
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
85
82
|
requirements:
|
86
|
-
- -
|
83
|
+
- - ! '>='
|
87
84
|
- !ruby/object:Gem::Version
|
88
85
|
version: 0.5.0
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
|
-
requirement: !ruby/object:Gem::Requirement
|
91
90
|
requirements:
|
92
|
-
- -
|
91
|
+
- - ! '>='
|
93
92
|
- !ruby/object:Gem::Version
|
94
93
|
version: 0.5.0
|
95
|
-
none: false
|
96
|
-
prerelease: false
|
97
|
-
type: :runtime
|
98
94
|
description: Exposing Pulp's juiciest components to the Ruby world.
|
99
95
|
email:
|
100
96
|
- ehelms@redhat.com, jsherril@redhat.com
|
@@ -103,12 +99,11 @@ extensions: []
|
|
103
99
|
extra_rdoc_files: []
|
104
100
|
files:
|
105
101
|
- lib/runcible.rb
|
106
|
-
- lib/runcible/version.rb
|
107
|
-
- lib/runcible/base.rb
|
108
102
|
- lib/runcible/extensions/package_category.rb
|
109
103
|
- lib/runcible/extensions/errata.rb
|
110
104
|
- lib/runcible/extensions/distributor.rb
|
111
105
|
- lib/runcible/extensions/consumer_group.rb
|
106
|
+
- lib/runcible/extensions/export_distributor.rb
|
112
107
|
- lib/runcible/extensions/consumer.rb
|
113
108
|
- lib/runcible/extensions/repository.rb
|
114
109
|
- lib/runcible/extensions/iso_importer.rb
|
@@ -130,6 +125,8 @@ files:
|
|
130
125
|
- lib/runcible/resources/user.rb
|
131
126
|
- lib/runcible/resources/unit.rb
|
132
127
|
- lib/runcible/resources/repository_group.rb
|
128
|
+
- lib/runcible/version.rb
|
129
|
+
- lib/runcible/base.rb
|
133
130
|
- LICENSE
|
134
131
|
- Rakefile
|
135
132
|
- Gemfile
|
@@ -137,28 +134,27 @@ files:
|
|
137
134
|
- CONTRIBUTING.md
|
138
135
|
homepage: https://github.com/Katello/runcible
|
139
136
|
licenses: []
|
140
|
-
post_install_message:
|
137
|
+
post_install_message:
|
141
138
|
rdoc_options: []
|
142
139
|
require_paths:
|
143
140
|
- lib
|
144
141
|
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
145
143
|
requirements:
|
146
|
-
- -
|
144
|
+
- - ! '>='
|
147
145
|
- !ruby/object:Gem::Version
|
148
|
-
version:
|
149
|
-
MA==
|
150
|
-
none: false
|
146
|
+
version: '0'
|
151
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
+
none: false
|
152
149
|
requirements:
|
153
|
-
- -
|
150
|
+
- - ! '>='
|
154
151
|
- !ruby/object:Gem::Version
|
155
|
-
version:
|
156
|
-
MA==
|
157
|
-
none: false
|
152
|
+
version: '0'
|
158
153
|
requirements: []
|
159
|
-
rubyforge_project:
|
160
|
-
rubygems_version: 1.8.
|
161
|
-
signing_key:
|
154
|
+
rubyforge_project:
|
155
|
+
rubygems_version: 1.8.25
|
156
|
+
signing_key:
|
162
157
|
specification_version: 3
|
163
158
|
summary: ''
|
164
159
|
test_files: []
|
160
|
+
has_rdoc:
|