foreman_scc_manager 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +619 -0
  3. data/README.md +38 -0
  4. data/Rakefile +47 -0
  5. data/app/assets/javascripts/foreman_scc_manager/scc_accounts.js.coffee +46 -0
  6. data/app/controllers/scc_accounts_controller.rb +118 -0
  7. data/app/controllers/scc_products_controller.rb +24 -0
  8. data/app/helpers/scc_accounts_helper.rb +2 -0
  9. data/app/helpers/scc_product_helper.rb +2 -0
  10. data/app/lib/actions/scc_manager/subscribe_product.rb +72 -0
  11. data/app/lib/actions/scc_manager/sync.rb +36 -0
  12. data/app/lib/actions/scc_manager/sync_products.rb +37 -0
  13. data/app/lib/actions/scc_manager/sync_repositories.rb +36 -0
  14. data/app/lib/scc_manager.rb +37 -0
  15. data/app/models/scc_account.rb +100 -0
  16. data/app/models/scc_extending.rb +4 -0
  17. data/app/models/scc_product.rb +46 -0
  18. data/app/models/scc_repository.rb +25 -0
  19. data/app/views/scc_accounts/_form.html.erb +36 -0
  20. data/app/views/scc_accounts/edit.html.erb +3 -0
  21. data/app/views/scc_accounts/index.html.erb +38 -0
  22. data/app/views/scc_accounts/new.html.erb +3 -0
  23. data/app/views/scc_accounts/show.html.erb +41 -0
  24. data/config/routes.rb +17 -0
  25. data/db/migrate/20170221100619_create_scc_accounts.rb +11 -0
  26. data/db/migrate/20170227103408_create_scc_products.rb +16 -0
  27. data/db/migrate/20170301131641_create_scc_repositories.rb +18 -0
  28. data/db/migrate/20170301141330_create_scc_products_scc_repositories_join_table.rb +8 -0
  29. data/db/migrate/20170301163451_add_product_type_to_scc_product.rb +5 -0
  30. data/db/migrate/20170302082912_remove_repositories_from_scc_products.rb +5 -0
  31. data/db/migrate/20170302121542_create_scc_extendings.rb +12 -0
  32. data/db/migrate/20170303085304_add_organization_to_scc_account.rb +22 -0
  33. data/db/migrate/20170303131704_add_product_id_to_scc_product.rb +6 -0
  34. data/db/migrate/20170307092057_add_synced_to_scc_account.rb +5 -0
  35. data/db/migrate/20170418132648_add_name_to_scc_account.rb +5 -0
  36. data/db/migrate/20170505063726_add_sync_status_to_scc_account.rb +5 -0
  37. data/lib/foreman_scc_manager.rb +4 -0
  38. data/lib/foreman_scc_manager/engine.rb +80 -0
  39. data/lib/foreman_scc_manager/version.rb +3 -0
  40. data/lib/tasks/foreman_scc_manager_tasks.rake +47 -0
  41. data/locale/Makefile +60 -0
  42. data/locale/action_names.rb +61 -0
  43. data/locale/de/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  44. data/locale/de/foreman_scc_manager.po +265 -0
  45. data/locale/en/LC_MESSAGES/foreman_scc_manager.mo +0 -0
  46. data/locale/en/foreman_scc_manager.po +265 -0
  47. data/locale/foreman_scc_manager.pot +345 -0
  48. data/locale/gemspec.rb +2 -0
  49. data/test/factories/foreman_scc_manager_factories.rb +5 -0
  50. data/test/test_plugin_helper.rb +6 -0
  51. data/test/unit/foreman_scc_manager_test.rb +11 -0
  52. metadata +154 -0
@@ -0,0 +1,265 @@
1
+ # English translations for foreman_scc_manager package.
2
+ # Copyright (C) 2017 THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the foreman_scc_manager package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
5
+ #
6
+ msgid ""
7
+ msgstr ""
8
+ "Project-Id-Version: foreman_scc_manager 1.0.0\n"
9
+ "Report-Msgid-Bugs-To: \n"
10
+ "PO-Revision-Date: 2017-04-24 12:30+0000\n"
11
+ "Last-Translator: ATIX AG <info@atix.de>\n"
12
+ "Language-Team: English\n"
13
+ "Language: en\n"
14
+ "MIME-Version: 1.0\n"
15
+ "Content-Type: text/plain; charset=UTF-8\n"
16
+ "Content-Transfer-Encoding: 8bit\n"
17
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
+ "\n"
19
+
20
+ msgid "Abstract async task"
21
+ msgstr ""
22
+
23
+ msgid "Action with sub plans"
24
+ msgstr ""
25
+
26
+ msgid "Actions"
27
+ msgstr ""
28
+
29
+ msgid "Add SCC account"
30
+ msgstr "Add SCC account"
31
+
32
+ msgid "Add SUSE Customer Center Account"
33
+ msgstr "Add SUSE Customer Center Account"
34
+
35
+ msgid "Add Sync Plan Products"
36
+ msgstr ""
37
+
38
+ msgid "Attach subscriptions"
39
+ msgstr ""
40
+
41
+ msgid "Auto attach subscriptions"
42
+ msgstr ""
43
+
44
+ msgid "Auto-attach subscriptions"
45
+ msgstr ""
46
+
47
+ msgid "Base URL"
48
+ msgstr "Base URL"
49
+
50
+ msgid "Configure capsule"
51
+ msgstr ""
52
+
53
+ msgid "Create"
54
+ msgstr ""
55
+
56
+ msgid "Create repos"
57
+ msgstr ""
58
+
59
+ msgid "Delete"
60
+ msgstr ""
61
+
62
+ msgid "Delete %s?"
63
+ msgstr ""
64
+
65
+ msgid "Delete Activation Key"
66
+ msgstr ""
67
+
68
+ msgid "Delete Lifecycle Environment"
69
+ msgstr ""
70
+
71
+ msgid "Delete Product"
72
+ msgstr ""
73
+
74
+ msgid "Destroy"
75
+ msgstr ""
76
+
77
+ msgid "Destroy Content Host"
78
+ msgstr ""
79
+
80
+ msgid "Disable"
81
+ msgstr ""
82
+
83
+ msgid "Edit"
84
+ msgstr ""
85
+
86
+ msgid "Edit %s"
87
+ msgstr ""
88
+
89
+ msgid "Enable"
90
+ msgstr ""
91
+
92
+ msgid "Errata mail"
93
+ msgstr ""
94
+
95
+ msgid "Export"
96
+ msgstr ""
97
+
98
+ msgid "Failed to add task to queue: %s"
99
+ msgstr "Failed to add task to queue: %s"
100
+
101
+ msgid "Filtered index content"
102
+ msgstr ""
103
+
104
+ msgid ""
105
+ "Foreman plugin to sync SUSE Customer Center products and repositories into "
106
+ "Katello."
107
+ msgstr ""
108
+ "Foreman plugin to sync SUSE Customer Center products and repositories into "
109
+ "Katello."
110
+
111
+ msgid "Hypervisors"
112
+ msgstr ""
113
+
114
+ msgid "Hypervisors update"
115
+ msgstr ""
116
+
117
+ msgid "Import Puppet classes"
118
+ msgstr ""
119
+
120
+ msgid "Import facts"
121
+ msgstr ""
122
+
123
+ msgid "Incremental Update"
124
+ msgstr ""
125
+
126
+ msgid "Incremental Update of 0 Content View Version(s) "
127
+ msgstr ""
128
+
129
+ msgid "Index content"
130
+ msgstr ""
131
+
132
+ msgid "Index errata"
133
+ msgstr ""
134
+
135
+ msgid "Index package groups"
136
+ msgstr ""
137
+
138
+ msgid "Install Applicable Errata"
139
+ msgstr ""
140
+
141
+ msgid "Install erratum"
142
+ msgstr ""
143
+
144
+ msgid "Install package"
145
+ msgstr ""
146
+
147
+ msgid "Install package group"
148
+ msgstr ""
149
+
150
+ msgid "Last synced"
151
+ msgstr "Last synced"
152
+
153
+ msgid "Lock on SCC account already taken: %s"
154
+ msgstr "Lock on SCC account already taken: %s"
155
+
156
+ msgid "Package Profile Update"
157
+ msgstr ""
158
+
159
+ msgid "Please sync your SUSE subscriptions first."
160
+ msgstr "Please sync your SUSE subscriptions first."
161
+
162
+ msgid "Product Create"
163
+ msgstr ""
164
+
165
+ msgid "Product already subscribed!"
166
+ msgstr "Product already subscribed!"
167
+
168
+ msgid "Products"
169
+ msgstr ""
170
+
171
+ msgid "Promotion"
172
+ msgstr ""
173
+
174
+ msgid "Publish"
175
+ msgstr ""
176
+
177
+ msgid "Register Host"
178
+ msgstr ""
179
+
180
+ msgid "Reindex subscriptions"
181
+ msgstr ""
182
+
183
+ msgid "Remove Content"
184
+ msgstr ""
185
+
186
+ msgid "Remove Version"
187
+ msgstr ""
188
+
189
+ msgid "Remove Versions and Associations"
190
+ msgstr ""
191
+
192
+ msgid "Remove from Environment"
193
+ msgstr ""
194
+
195
+ msgid "Remove package"
196
+ msgstr ""
197
+
198
+ msgid "Remove package group"
199
+ msgstr ""
200
+
201
+ msgid "Remove subscriptions"
202
+ msgstr ""
203
+
204
+ msgid "SUSE Customer Center"
205
+ msgstr "SUSE Customer Center"
206
+
207
+ msgid "SUSE Customer Center account"
208
+ msgstr "SUSE Customer Center account"
209
+
210
+ msgid "SUSE Subscriptions"
211
+ msgstr "SUSE Subscriptions"
212
+
213
+ msgid "SUSE subscriptions"
214
+ msgstr "SUSE subscriptions"
215
+
216
+ msgid "Subscribe SCC Product"
217
+ msgstr "Subscribe SCC Product"
218
+
219
+ msgid "Sync"
220
+ msgstr "Sync"
221
+
222
+ msgid "Sync SUSE subscriptions"
223
+ msgstr "Sync SUSE subscriptions"
224
+
225
+ msgid "Sync SUSE subscriptions (Products)"
226
+ msgstr "Sync SUSE subscriptions (Products)"
227
+
228
+ msgid "Sync SUSE subscriptions (Repositories)"
229
+ msgstr "Sync SUSE subscriptions (Repositories)"
230
+
231
+ msgid "Sync task started."
232
+ msgstr "Sync task started."
233
+
234
+ msgid "Synchronize"
235
+ msgstr "Synchronize"
236
+
237
+ msgid "Synchronize capsule content"
238
+ msgstr ""
239
+
240
+ msgid "Test Connection"
241
+ msgstr "Test Connection"
242
+
243
+ msgid "Unregister Host"
244
+ msgstr ""
245
+
246
+ msgid "Update"
247
+ msgstr ""
248
+
249
+ msgid "Update Sync Plan"
250
+ msgstr ""
251
+
252
+ msgid "Update Sync Plan Products"
253
+ msgstr ""
254
+
255
+ msgid "Update for host"
256
+ msgstr ""
257
+
258
+ msgid "Update package"
259
+ msgstr ""
260
+
261
+ msgid "Upload errata into"
262
+ msgstr ""
263
+
264
+ msgid "Upload into"
265
+ msgstr ""
@@ -0,0 +1,345 @@
1
+ # SOME DESCRIPTIVE TITLE.
2
+ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
+ # This file is distributed under the same license as the foreman_scc_manager package.
4
+ # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
+ #
6
+ #, fuzzy
7
+ msgid ""
8
+ msgstr ""
9
+ "Project-Id-Version: foreman_scc_manager 1.0.0\n"
10
+ "Report-Msgid-Bugs-To: \n"
11
+ "POT-Creation-Date: 2017-04-25 08:29+0000\n"
12
+ "PO-Revision-Date: 2017-04-25 08:29+0000\n"
13
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
+ "Language-Team: LANGUAGE <LL@li.org>\n"
15
+ "Language: \n"
16
+ "MIME-Version: 1.0\n"
17
+ "Content-Type: text/plain; charset=UTF-8\n"
18
+ "Content-Transfer-Encoding: 8bit\n"
19
+ "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
20
+
21
+ #: ../app/controllers/scc_accounts_controller.rb:68
22
+ msgid "Sync task started."
23
+ msgstr ""
24
+
25
+ #: ../app/controllers/scc_accounts_controller.rb:70
26
+ msgid "Failed to add task to queue: %s"
27
+ msgstr ""
28
+
29
+ #: ../app/controllers/scc_accounts_controller.rb:72
30
+ msgid "Lock on SCC account already taken: %s"
31
+ msgstr ""
32
+
33
+ #: ../app/lib/actions/scc_manager/subscribe_product.rb:5
34
+ msgid "Product already subscribed!"
35
+ msgstr ""
36
+
37
+ #: ../app/lib/actions/scc_manager/subscribe_product.rb:36 action_names.rb:55
38
+ msgid "Subscribe SCC Product"
39
+ msgstr ""
40
+
41
+ #: ../app/lib/actions/scc_manager/sync.rb:26 action_names.rb:44
42
+ msgid "Sync SUSE subscriptions"
43
+ msgstr ""
44
+
45
+ #: ../app/lib/actions/scc_manager/sync_products.rb:28 action_names.rb:50
46
+ msgid "Sync SUSE subscriptions (Products)"
47
+ msgstr ""
48
+
49
+ #: ../app/lib/actions/scc_manager/sync_repositories.rb:27 action_names.rb:54
50
+ msgid "Sync SUSE subscriptions (Repositories)"
51
+ msgstr ""
52
+
53
+ #: ../app/views/scc_accounts/_form.html.erb:8
54
+ msgid "SUSE Customer Center account"
55
+ msgstr ""
56
+
57
+ #: ../app/views/scc_accounts/_form.html.erb:17
58
+ msgid "Base URL"
59
+ msgstr ""
60
+
61
+ #: ../app/views/scc_accounts/_form.html.erb:22
62
+ msgid "Test Connection"
63
+ msgstr ""
64
+
65
+ #: ../app/views/scc_accounts/edit.html.erb:1
66
+ msgid "Edit %s"
67
+ msgstr ""
68
+
69
+ #: ../app/views/scc_accounts/index.html.erb:4
70
+ msgid "SUSE subscriptions"
71
+ msgstr ""
72
+
73
+ #: ../app/views/scc_accounts/index.html.erb:5
74
+ msgid "Add SCC account"
75
+ msgstr ""
76
+
77
+ #: ../app/views/scc_accounts/index.html.erb:11
78
+ msgid "Products"
79
+ msgstr ""
80
+
81
+ #: ../app/views/scc_accounts/index.html.erb:12
82
+ msgid "Last synced"
83
+ msgstr ""
84
+
85
+ #: ../app/views/scc_accounts/index.html.erb:13
86
+ msgid "Actions"
87
+ msgstr ""
88
+
89
+ #: ../app/views/scc_accounts/index.html.erb:27
90
+ msgid "Sync"
91
+ msgstr ""
92
+
93
+ #: ../app/views/scc_accounts/index.html.erb:29
94
+ msgid "Edit"
95
+ msgstr ""
96
+
97
+ #: ../app/views/scc_accounts/index.html.erb:32
98
+ msgid "Delete %s?"
99
+ msgstr ""
100
+
101
+ #: ../app/views/scc_accounts/new.html.erb:1
102
+ msgid "Add SUSE Customer Center Account"
103
+ msgstr ""
104
+
105
+ #: ../app/views/scc_accounts/show.html.erb:26
106
+ msgid "SUSE Customer Center"
107
+ msgstr ""
108
+
109
+ #: ../app/views/scc_accounts/show.html.erb:37
110
+ msgid "Please sync your SUSE subscriptions first."
111
+ msgstr ""
112
+
113
+ #: ../lib/foreman_scc_manager/engine.rb:38
114
+ msgid "SUSE Subscriptions"
115
+ msgstr ""
116
+
117
+ #: action_names.rb:2
118
+ msgid "Delete Lifecycle Environment"
119
+ msgstr ""
120
+
121
+ #: action_names.rb:3
122
+ msgid "Destroy Content Host"
123
+ msgstr ""
124
+
125
+ #: action_names.rb:4
126
+ msgid "Hypervisors"
127
+ msgstr ""
128
+
129
+ #: action_names.rb:5
130
+ msgid "Hypervisors update"
131
+ msgstr ""
132
+
133
+ #: action_names.rb:6
134
+ msgid "Install package"
135
+ msgstr ""
136
+
137
+ #: action_names.rb:7
138
+ msgid "Remove package"
139
+ msgstr ""
140
+
141
+ #: action_names.rb:8
142
+ msgid "Update for host"
143
+ msgstr ""
144
+
145
+ #: action_names.rb:9
146
+ msgid "Install Applicable Errata"
147
+ msgstr ""
148
+
149
+ #: action_names.rb:10
150
+ msgid "Update package"
151
+ msgstr ""
152
+
153
+ #: action_names.rb:11
154
+ msgid "Update"
155
+ msgstr ""
156
+
157
+ #: action_names.rb:12
158
+ msgid "Install package group"
159
+ msgstr ""
160
+
161
+ #: action_names.rb:13
162
+ msgid "Package Profile Update"
163
+ msgstr ""
164
+
165
+ #: action_names.rb:14
166
+ msgid "Configure capsule"
167
+ msgstr ""
168
+
169
+ #: action_names.rb:15
170
+ msgid "Auto-attach subscriptions"
171
+ msgstr ""
172
+
173
+ #: action_names.rb:16
174
+ msgid "Create repos"
175
+ msgstr ""
176
+
177
+ #: action_names.rb:17
178
+ msgid "Create"
179
+ msgstr ""
180
+
181
+ #: action_names.rb:18
182
+ msgid "Remove package group"
183
+ msgstr ""
184
+
185
+ #: action_names.rb:19
186
+ msgid "Install erratum"
187
+ msgstr ""
188
+
189
+ #: action_names.rb:20
190
+ msgid "Register Host"
191
+ msgstr ""
192
+
193
+ #: action_names.rb:21
194
+ msgid "Remove subscriptions"
195
+ msgstr ""
196
+
197
+ #: action_names.rb:22
198
+ msgid "Unregister Host"
199
+ msgstr ""
200
+
201
+ #: action_names.rb:23
202
+ msgid "Delete Activation Key"
203
+ msgstr ""
204
+
205
+ #: action_names.rb:24
206
+ msgid "Abstract async task"
207
+ msgstr ""
208
+
209
+ #: action_names.rb:25
210
+ msgid "Incremental Update"
211
+ msgstr ""
212
+
213
+ #: action_names.rb:26
214
+ msgid "Destroy"
215
+ msgstr ""
216
+
217
+ #: action_names.rb:27
218
+ msgid "Synchronize capsule content"
219
+ msgstr ""
220
+
221
+ #: action_names.rb:28
222
+ msgid "Product Create"
223
+ msgstr ""
224
+
225
+ #: action_names.rb:29
226
+ msgid "Export"
227
+ msgstr ""
228
+
229
+ #: action_names.rb:30
230
+ msgid "Delete Product"
231
+ msgstr ""
232
+
233
+ #: action_names.rb:31
234
+ msgid "Delete"
235
+ msgstr ""
236
+
237
+ #: action_names.rb:32
238
+ msgid "Auto attach subscriptions"
239
+ msgstr ""
240
+
241
+ #: action_names.rb:33
242
+ msgid "Reindex subscriptions"
243
+ msgstr ""
244
+
245
+ #: action_names.rb:34
246
+ msgid "Errata mail"
247
+ msgstr ""
248
+
249
+ #: action_names.rb:35
250
+ msgid "Attach subscriptions"
251
+ msgstr ""
252
+
253
+ #: action_names.rb:36
254
+ msgid "Incremental Update of 0 Content View Version(s) "
255
+ msgstr ""
256
+
257
+ #: action_names.rb:37
258
+ msgid "Import Puppet classes"
259
+ msgstr ""
260
+
261
+ #: action_names.rb:38
262
+ msgid "Import facts"
263
+ msgstr ""
264
+
265
+ #: action_names.rb:39
266
+ msgid "Filtered index content"
267
+ msgstr ""
268
+
269
+ #: action_names.rb:40
270
+ msgid "Upload into"
271
+ msgstr ""
272
+
273
+ #: action_names.rb:41
274
+ msgid "Action with sub plans"
275
+ msgstr ""
276
+
277
+ #: action_names.rb:42
278
+ msgid "Upload errata into"
279
+ msgstr ""
280
+
281
+ #: action_names.rb:43
282
+ msgid "Remove from Environment"
283
+ msgstr ""
284
+
285
+ #: action_names.rb:45
286
+ msgid "Enable"
287
+ msgstr ""
288
+
289
+ #: action_names.rb:46
290
+ msgid "Index errata"
291
+ msgstr ""
292
+
293
+ #: action_names.rb:47
294
+ msgid "Remove Version"
295
+ msgstr ""
296
+
297
+ #: action_names.rb:48
298
+ msgid "Index package groups"
299
+ msgstr ""
300
+
301
+ #: action_names.rb:49
302
+ msgid "Add Sync Plan Products"
303
+ msgstr ""
304
+
305
+ #: action_names.rb:51
306
+ msgid "Remove Content"
307
+ msgstr ""
308
+
309
+ #: action_names.rb:52
310
+ msgid "Index content"
311
+ msgstr ""
312
+
313
+ #: action_names.rb:53
314
+ msgid "Disable"
315
+ msgstr ""
316
+
317
+ #: action_names.rb:56
318
+ msgid "Remove Versions and Associations"
319
+ msgstr ""
320
+
321
+ #: action_names.rb:57
322
+ msgid "Synchronize"
323
+ msgstr ""
324
+
325
+ #: action_names.rb:58
326
+ msgid "Publish"
327
+ msgstr ""
328
+
329
+ #: action_names.rb:59
330
+ msgid "Update Sync Plan Products"
331
+ msgstr ""
332
+
333
+ #: action_names.rb:60
334
+ msgid "Promotion"
335
+ msgstr ""
336
+
337
+ #: action_names.rb:61
338
+ msgid "Update Sync Plan"
339
+ msgstr ""
340
+
341
+ #: gemspec.rb:2
342
+ msgid ""
343
+ "Foreman plugin to sync SUSE Customer Center products and repositories into Kat"
344
+ "ello."
345
+ msgstr ""