studio_api 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +3 -1
- data/VERSION +1 -1
- data/lib/studio_api/appliance.rb +2 -0
- metadata +35 -35
data/README
CHANGED
@@ -37,7 +37,9 @@ for ActiveResource error handling.
|
|
37
37
|
puts "Created appliance #{appliance.inspect}"
|
38
38
|
|
39
39
|
#add own rpm built agains SLED11_SP1
|
40
|
-
|
40
|
+
File.open("/home/jreidinger/rpms/kezboard-1.0-1.60.noarch.rpm") do |file|
|
41
|
+
StudioApi::Rpm.upload file, "SLED11_SP1"
|
42
|
+
end
|
41
43
|
# and choose it in appliance ( and of course add repository with own rpms)
|
42
44
|
appliance.add_user_repository
|
43
45
|
appliance.add_package "kezboard", :version => "1.0-1.60"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4.0
|
data/lib/studio_api/appliance.rb
CHANGED
@@ -208,6 +208,7 @@ module StudioApi
|
|
208
208
|
response = GenericRequest.new(self.class.studio_connection).get request_str
|
209
209
|
attrs = XmlSimple.xml_in response
|
210
210
|
res = []
|
211
|
+
return res unless attrs["repository"]
|
211
212
|
attrs["repository"].each do |repo|
|
212
213
|
options = { "repository_id" => repo["id"].to_i }
|
213
214
|
res += convert_selectable repo["software"][0], options
|
@@ -226,6 +227,7 @@ module StudioApi
|
|
226
227
|
end
|
227
228
|
response = GenericRequest.new(self.class.studio_connection).get request_str
|
228
229
|
attrs = XmlSimple.xml_in response
|
230
|
+
return [] unless attrs["repository"]
|
229
231
|
res = []
|
230
232
|
attrs["repository"].each do |repo|
|
231
233
|
options = { "repository_id" => repo["id"].to_i }
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: studio_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
|
-
-
|
8
|
+
- 4
|
9
9
|
- 0
|
10
|
-
version: 2.
|
10
|
+
version: 2.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josef Reidinger
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-26 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -93,25 +93,25 @@ files:
|
|
93
93
|
- test/running_build_test.rb
|
94
94
|
- test/template_set_test.rb
|
95
95
|
- test/responses/appliance.xml
|
96
|
+
- test/responses/gpg_key.xml
|
97
|
+
- test/responses/status-broken.xml
|
98
|
+
- test/responses/template_sets.xml
|
96
99
|
- test/responses/appliances.xml
|
97
|
-
- test/responses/build.xml
|
98
|
-
- test/responses/builds.xml
|
99
100
|
- test/responses/file.xml
|
100
|
-
- test/responses/files.xml
|
101
|
-
- test/responses/gpg_key.xml
|
102
|
-
- test/responses/gpg_keys.xml
|
103
|
-
- test/responses/repositories.xml
|
104
101
|
- test/responses/repository.xml
|
105
102
|
- test/responses/rpm.xml
|
106
|
-
- test/responses/
|
103
|
+
- test/responses/status.xml
|
104
|
+
- test/responses/build.xml
|
107
105
|
- test/responses/running_build.xml
|
108
|
-
- test/responses/
|
109
|
-
- test/responses/
|
106
|
+
- test/responses/files.xml
|
107
|
+
- test/responses/rpms.xml
|
108
|
+
- test/responses/gpg_keys.xml
|
110
109
|
- test/responses/software_installed.xml
|
111
110
|
- test/responses/software_search.xml
|
112
|
-
- test/responses/
|
113
|
-
- test/responses/
|
114
|
-
- test/responses/
|
111
|
+
- test/responses/builds.xml
|
112
|
+
- test/responses/software.xml
|
113
|
+
- test/responses/running_builds.xml
|
114
|
+
- test/responses/repositories.xml
|
115
115
|
has_rdoc: true
|
116
116
|
homepage: http://github.com/jreidinger/studio_api
|
117
117
|
licenses: []
|
@@ -149,33 +149,33 @@ signing_key:
|
|
149
149
|
specification_version: 3
|
150
150
|
summary: Studio Api Interface.
|
151
151
|
test_files:
|
152
|
-
- test/
|
152
|
+
- test/running_build_test.rb
|
153
|
+
- test/resource_test.rb
|
154
|
+
- test/generic_request_test.rb
|
155
|
+
- test/repository_test.rb
|
156
|
+
- test/template_set_test.rb
|
153
157
|
- test/build_test.rb
|
158
|
+
- test/rpm_test.rb
|
154
159
|
- test/connection_test.rb
|
155
160
|
- test/file_test.rb
|
156
|
-
- test/
|
157
|
-
- test/repository_test.rb
|
158
|
-
- test/resource_test.rb
|
161
|
+
- test/appliance_test.rb
|
159
162
|
- test/responses/appliance.xml
|
163
|
+
- test/responses/gpg_key.xml
|
164
|
+
- test/responses/status-broken.xml
|
165
|
+
- test/responses/template_sets.xml
|
160
166
|
- test/responses/appliances.xml
|
161
|
-
- test/responses/build.xml
|
162
|
-
- test/responses/builds.xml
|
163
167
|
- test/responses/file.xml
|
164
|
-
- test/responses/files.xml
|
165
|
-
- test/responses/gpg_key.xml
|
166
|
-
- test/responses/gpg_keys.xml
|
167
|
-
- test/responses/repositories.xml
|
168
168
|
- test/responses/repository.xml
|
169
169
|
- test/responses/rpm.xml
|
170
|
-
- test/responses/
|
170
|
+
- test/responses/status.xml
|
171
|
+
- test/responses/build.xml
|
171
172
|
- test/responses/running_build.xml
|
172
|
-
- test/responses/
|
173
|
-
- test/responses/
|
173
|
+
- test/responses/files.xml
|
174
|
+
- test/responses/rpms.xml
|
175
|
+
- test/responses/gpg_keys.xml
|
174
176
|
- test/responses/software_installed.xml
|
175
177
|
- test/responses/software_search.xml
|
176
|
-
- test/responses/
|
177
|
-
- test/responses/
|
178
|
-
- test/responses/
|
179
|
-
- test/
|
180
|
-
- test/running_build_test.rb
|
181
|
-
- test/template_set_test.rb
|
178
|
+
- test/responses/builds.xml
|
179
|
+
- test/responses/software.xml
|
180
|
+
- test/responses/running_builds.xml
|
181
|
+
- test/responses/repositories.xml
|