foreman_scc_manager 1.7.1 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6dd28243aa51ff11edf70f4679107d0327a021442f361b3e7a5a33b652f563a
4
- data.tar.gz: bf08fc7303d79042037e36241676202acaef29f172ef0124fb14f5c78d7b593b
3
+ metadata.gz: 0fa5a1408caba6e4ca5d6e2c634020444f644ab964f7448ff36ede9f2fe48ff4
4
+ data.tar.gz: 0a641b367ce578003d72c7b05fd0e4a2d10dc7856d3ecbf80b333d723f5edaa1
5
5
  SHA512:
6
- metadata.gz: '0813af8e7f9fbfa54e7b1826a9f552038b43975e6deb4c1138b91be202614a5e892b9e1eaca33474437a13b068e1ed49c568cbf693f4d66f7f627a941c2d59fd'
7
- data.tar.gz: 47bd09d7e3bf94d7d12f9af306a24ed610bc6afa63b7b7736fade9ab0dc2e3b6967e0131c1f22201c369cc7710688c0c24921e2e66aba16291f42354f4803997
6
+ metadata.gz: 767cf999eb62e84fe53ca718515e1e9655dee77f614ebd178cc3d52eb1e8568bad6924efca15c81cfb8fa796a30fb7f2162aa116d731121b7341480b50255334
7
+ data.tar.gz: e2117f9f03baf0d70a0b1514fc7533f0d3656b12c22150260a3f58fb4708176e87a9b35a46bc10d1aa9caa7bf13d34d498dcfdeddde42dbba5283d479fbb5cbc
data/README.md CHANGED
@@ -13,7 +13,7 @@ for how to install Foreman plugins
13
13
 
14
14
  | Foreman Version | Katello Version | Plugin Version |
15
15
  | --------------- | --------------- | -------------- |
16
- | 1.24 | 3.14 | ~> 1.7.1 |
16
+ | 1.24 | 3.14 | ~> 1.8.0 |
17
17
  | 1.22 | 3.12 | ~> 1.7.0 |
18
18
  | 1.21 | 3.10 | ~> 1.6.0 |
19
19
  | 1.20 | 3.9 | ~> 1.6.0 |
@@ -26,7 +26,7 @@ $ ->
26
26
  $('#connection_test_result')[0].innerHTML = ''
27
27
  $('#test_scc_connection_indicator').show()
28
28
  $.ajax event.target.parentNode.dataset['url'],
29
- type: 'POST'
29
+ type: 'PUT'
30
30
  dataType: 'JSON'
31
31
  data: $('form').serialize()
32
32
  success: (result) ->
@@ -1,15 +1,12 @@
1
1
  module Actions
2
2
  module SccManager
3
3
  class SyncProducts < Actions::EntryAction
4
- include EncryptValue
5
-
6
4
  def plan(scc_account)
7
5
  action_subject(scc_account)
8
- password = encrypt_field(scc_account.password)
9
6
  plan_self(id: scc_account.id,
10
7
  base_url: scc_account.base_url,
11
8
  login: scc_account.login,
12
- password: password)
9
+ password: scc_account.password)
13
10
  end
14
11
 
15
12
  def run
@@ -18,11 +15,9 @@ module Actions
18
15
  products = ::SccManager.get_scc_data(input.fetch(:base_url),
19
16
  '/connect/organizations/products',
20
17
  input.fetch(:login),
21
- decrypt_field(input.fetch(:password)))
18
+ input.fetch(:password))
22
19
  output[:data] = ::SccManager.sanitize_products(products).values
23
- rescue StandardError => e
24
- ::Foreman::Logging.logger('foreman_scc_manager').error "Error while syncronizing SCC-Products: #{e}"
25
- output[:error] = e.to_s
20
+ rescue StandardError
26
21
  output[:status] = 'FAILURE'
27
22
  end
28
23
  end
@@ -39,6 +34,10 @@ module Actions
39
34
  _('Sync SUSE subscriptions (Products)')
40
35
  end
41
36
 
37
+ def humanized_input
38
+ input.dup.update(password: '***')
39
+ end
40
+
42
41
  def humanized_output
43
42
  output.dup.update(data: 'Trimmed')
44
43
  end
@@ -1,14 +1,11 @@
1
1
  module Actions
2
2
  module SccManager
3
3
  class SyncRepositories < Actions::EntryAction
4
- include EncryptValue
5
-
6
4
  def plan(scc_account)
7
5
  action_subject(scc_account)
8
- password = encrypt_field(scc_account.password)
9
6
  plan_self(base_url: scc_account.base_url,
10
7
  login: scc_account.login,
11
- password: password)
8
+ password: scc_account.password)
12
9
  end
13
10
 
14
11
  def run
@@ -17,11 +14,9 @@ module Actions
17
14
  output[:data] = ::SccManager.get_scc_data(input[:base_url],
18
15
  '/connect/organizations/repositories',
19
16
  input[:login],
20
- decrypt_field(input[:password]))
17
+ input[:password])
21
18
  output[:status] = 'SUCCESS'
22
- rescue StandardError => e
23
- ::Foreman::Logging.logger('foreman_scc_manager').error "Error while syncronizing SCC-Repositories: #{e}"
24
- output[:error] = e.to_s
19
+ rescue StandardError
25
20
  output[:status] = 'FAILURE'
26
21
  end
27
22
  end
@@ -38,6 +33,10 @@ module Actions
38
33
  _('Sync SUSE subscriptions (Repositories)')
39
34
  end
40
35
 
36
+ def humanized_input
37
+ input.dup.update(password: '***')
38
+ end
39
+
41
40
  def humanized_output
42
41
  output.dup.update(data: "Trimmed (got #{output[:data]&.length} repositories")
43
42
  end
@@ -8,8 +8,8 @@ module SccManager
8
8
  uri.scheme = URI.parse(proxy_config[:host]).scheme
9
9
  uri.host = URI.parse(proxy_config[:host]).host
10
10
  uri.port = proxy_config[:port].try(:to_s)
11
- uri.user = proxy_config[:user]
12
- uri.password = proxy_config[:password] if uri.user.present?
11
+ uri.user = proxy_config[:user].try(:to_s)
12
+ uri.password = proxy_config[:password].try(:to_s)
13
13
 
14
14
  RestClient.proxy = uri.to_s
15
15
  end
@@ -166,8 +166,7 @@ class SccAccount < ApplicationRecord
166
166
  def test_connection
167
167
  get_scc_data('/connect/organizations/subscriptions')
168
168
  true
169
- rescue StandardError => e
170
- ::Foreman::Logging.logger('foreman_scc_manager').warn "Error occurred while testing SCC-Connection to Account #{self}: #{e}"
169
+ rescue StandardError
171
170
  false
172
171
  end
173
172
 
@@ -186,10 +185,10 @@ class SccAccount < ApplicationRecord
186
185
  cached_repository.save!
187
186
  upstream_repo_ids << ur['id']
188
187
  end
189
- ::Foreman::Logging.logger('foreman_scc_manager').debug "Found #{upstream_repo_ids.length} repositories"
188
+ logger.debug "Found #{upstream_repo_ids.length} repositories"
190
189
  # delete repositories beeing removed upstream
191
190
  to_delete = scc_repositories.where.not(scc_id: upstream_repo_ids)
192
- ::Foreman::Logging.logger('foreman_scc_manager').debug "Deleting #{to_delete.count} old repositories"
191
+ logger.debug "Deleting #{to_delete.count} old repositories"
193
192
  to_delete.destroy_all
194
193
  end
195
194
 
@@ -209,10 +208,10 @@ class SccAccount < ApplicationRecord
209
208
  cached_product.save!
210
209
  upstream_product_ids << up['id']
211
210
  end
212
- ::Foreman::Logging.logger('foreman_scc_manager').debug "Found #{upstream_product_ids.length} products"
211
+ logger.debug "Found #{upstream_product_ids.length} products"
213
212
  # delete products beeing removed upstream
214
213
  to_delete = scc_products.where.not(scc_id: upstream_product_ids)
215
- ::Foreman::Logging.logger('foreman_scc_manager').debug "Deleting #{to_delete.count} old products"
214
+ logger.debug "Deleting #{to_delete.count} old products"
216
215
  to_delete.destroy_all
217
216
  # rewire product to product relationships
218
217
  upstream_products.each do |up|
@@ -220,7 +219,7 @@ class SccAccount < ApplicationRecord
220
219
  begin
221
220
  scc_products.find_by!(scc_id: up['id']).update!(scc_extensions: extensions)
222
221
  rescue ActiveRecord::RecordNotFound
223
- ::Foreman::Logging.logger('foreman_scc_manager').info "Failed to find parent scc_product '#{up['name']}'."
222
+ logger.info "Failed to find parent scc_product '#{up['name']}'."
224
223
  end
225
224
  end
226
225
  end
@@ -13,8 +13,7 @@
13
13
  <%= text_f f, :login, :help_block => _("Use your 'Organization credentials' obtained from the SUSE Customer Center.") %>
14
14
  <%= password_f f, :password %>
15
15
  <%= text_f f, :base_url, label: _('Base URL') %>
16
- <%= selectable_f f, :interval, SccAccount::TYPES, {},
17
- { :label => _('Sync interval'), :help_block => _("The sync interval is used to periodically update the SCC authentication tokens of any imported products.") } %>
16
+ <%= selectable_f f, :interval, SccAccount::TYPES, label: _('Interval') %>
18
17
  <%= field f, :sync_date, label: _('Sync Date') do
19
18
  f.datetime_field :sync_date, placeholder: Time.now
20
19
  end %>
@@ -26,7 +25,7 @@
26
25
  id: 'test_scc_connection_btn',
27
26
  spinner_id: 'test_scc_connection_indicator',
28
27
  class: 'btn-default',
29
- 'data-url': @scc_account.id ? test_connection_scc_account_path : test_connection_scc_accounts_path ) %>
28
+ 'data-url': test_connection_scc_accounts_path(scc_account_id: @scc_account)) %>
30
29
  </div>
31
30
  <div class='col-md-2'>
32
31
  <span id='connection_test_result'></span>
@@ -2,11 +2,10 @@ Rails.application.routes.draw do
2
2
  resources :scc_accounts do
3
3
  collection do
4
4
  post 'test_connection'
5
- put 'test_connection'
6
5
  get 'auto_complete_search'
7
6
  end
8
7
  member do
9
- patch 'test_connection'
8
+ put 'test_connection'
10
9
  put 'sync'
11
10
  put 'bulk_subscribe'
12
11
  end
@@ -10,7 +10,7 @@ module ForemanSccManager
10
10
  config.autoload_paths += Dir["#{config.root}/app/overrides"]
11
11
 
12
12
  config.to_prepare do
13
- ForemanTasks::RecurringLogic.send :include, Concerns::RecurringLogicExtensions
13
+ ForemanTasks::RecurringLogic.include Concerns::RecurringLogicExtensions
14
14
  end
15
15
 
16
16
  # Add any db migrations
@@ -56,9 +56,7 @@ module ForemanSccManager
56
56
  end
57
57
 
58
58
  # Add a new role called 'SccManager' if it doesn't exist
59
- role 'SccManager',
60
- %i[view_scc use_scc new_scc edit_scc delete_scc sync_scc],
61
- 'Role granting permissons to manage SUSE Subscriptions'
59
+ role 'SccManager', %i[view_scc use_scc new_scc edit_scc delete_scc sync_scc]
62
60
 
63
61
  # add menu entry
64
62
  menu :top_menu, :scc_manager,
@@ -1,3 +1,3 @@
1
1
  module ForemanSccManager
2
- VERSION = '1.7.1'.freeze
2
+ VERSION = '1.8.0'.freeze
3
3
  end
@@ -2,7 +2,7 @@
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
3
  # This file is distributed under the same license as the foreman_scc_manager package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
- #
5
+ #
6
6
  # Translators:
7
7
  # Wiederoder <stefanwiederoder@googlemail.com>, 2019
8
8
  # Bryan Kearney <bryan.kearney@gmail.com>, 2019
@@ -11,11 +11,13 @@
11
11
  # Michael Moll, 2019
12
12
  # Lukas K. <kallies@puzzle.ch>, 2019
13
13
  # Markus Bucher <bucher@atix.de>, 2019
14
- #
14
+ #
15
+ #, fuzzy
15
16
  msgid ""
16
17
  msgstr ""
17
18
  "Project-Id-Version: foreman_scc_manager 1.7.0\n"
18
19
  "Report-Msgid-Bugs-To: \n"
20
+ "POT-Creation-Date: 2019-10-22 13:59+0000\n"
19
21
  "PO-Revision-Date: 2019-10-17 13:28+0000\n"
20
22
  "Last-Translator: Markus Bucher <bucher@atix.de>, 2019\n"
21
23
  "Language-Team: German (https://www.transifex.com/foreman/teams/114/de/)\n"
@@ -25,173 +27,168 @@ msgstr ""
25
27
  "Language: de\n"
26
28
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
27
29
 
28
- msgid "Actions"
29
- msgstr "Aktionen"
30
+ #: ../app/controllers/scc_accounts_controller.rb:64
31
+ msgid "Sync task started."
32
+ msgstr "Sync Job gestartet."
30
33
 
31
- msgid "Add SCC account"
32
- msgstr "SCC Konto hinzufügen"
34
+ #: ../app/controllers/scc_accounts_controller.rb:66
35
+ #: ../app/controllers/scc_accounts_controller.rb:86
36
+ msgid "Failed to add task to queue: %s"
37
+ msgstr "Aufgabe konnte nicht in die Warteschlange gestellt werden: %s"
33
38
 
34
- msgid "Add SUSE Customer Center Account"
35
- msgstr "SUSE Customer Center Konto hinzufügen"
39
+ #: ../app/controllers/scc_accounts_controller.rb:68
40
+ #: ../app/controllers/scc_accounts_controller.rb:88
41
+ msgid "Lock on SCC account already taken: %s"
42
+ msgstr "Lock für SCC Zugang bereits vergeben: %s"
36
43
 
37
- msgid "Base URL"
38
- msgstr "Basis URL"
44
+ #: ../app/controllers/scc_accounts_controller.rb:81
45
+ msgid "Task to subscribe products started."
46
+ msgstr "Job zum abonnieren von Produkten gestartet."
39
47
 
40
- msgid "Bulk subscription of scc_products for scc_account"
41
- msgstr ""
48
+ #: ../app/controllers/scc_accounts_controller.rb:83
49
+ msgid "No products selected."
50
+ msgstr "Keine Produkte ausgewählt."
42
51
 
43
- msgid "Create an scc_account"
44
- msgstr ""
52
+ #: ../app/lib/actions/scc_manager/subscribe_product.rb:5
53
+ msgid "Product already subscribed!"
54
+ msgstr "Produkt wurde bereits abonniert!"
45
55
 
46
- msgid "Cron expression is not valid!"
47
- msgstr "Cron-Ausdruck ungültig!"
56
+ #: ../app/lib/actions/scc_manager/subscribe_product.rb:35 action_names.rb:1
57
+ msgid "Subscribe SCC Product"
58
+ msgstr "SCC Produkt abonnieren"
48
59
 
49
- msgid "Delete %s?"
50
- msgstr "%s löschen?"
60
+ #: ../app/lib/actions/scc_manager/sync.rb:27 action_names.rb:2
61
+ msgid "Sync SUSE subscriptions"
62
+ msgstr "SUSE Abonnements synchronisieren"
51
63
 
52
- msgid "Delete scc_account"
53
- msgstr ""
64
+ #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:31
65
+ msgid "Update SUSE repositories %s"
66
+ msgstr "SUSE Repositorien %s aktualisieren"
54
67
 
55
- msgid "Edit %s"
56
- msgstr "%s bearbeiten"
68
+ #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:31
69
+ msgid "Unknown"
70
+ msgstr "Unbekannt"
57
71
 
58
- msgid "Failed to add task to queue: %s"
59
- msgstr "Aufgabe konnte nicht in die Warteschlange gestellt werden: %s"
72
+ #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:33
73
+ #: action_names.rb:3
74
+ msgid "Update SUSE repositories"
75
+ msgstr "SUSE Repositorien aktualisieren"
60
76
 
61
- msgid "Foreman plugin to sync SUSE Customer Center products and repositories into Katello."
62
- msgstr "Foreman Plugin um SUSE Customer Center Produkte und Repositorien in Katello zu importieren."
77
+ #: ../app/lib/actions/scc_manager/sync_products.rb:34 action_names.rb:4
78
+ msgid "Sync SUSE subscriptions (Products)"
79
+ msgstr "SUSE Abonnements (Produkte) synchronisieren"
80
+
81
+ #: ../app/lib/actions/scc_manager/sync_repositories.rb:33 action_names.rb:5
82
+ msgid "Sync SUSE subscriptions (Repositories)"
83
+ msgstr "SUSE Abonnements (Repositorien) synchronisieren"
63
84
 
85
+ #: ../app/models/scc_account.rb:58
86
+ msgid "never synced"
87
+ msgstr "Nie synchronisiert"
88
+
89
+ #: ../app/models/scc_account.rb:105
64
90
  msgid "Interval cannot be nil"
65
91
  msgstr "Intervall darf nicht Null sein"
66
92
 
67
- msgid "Interval for syncing scc_account"
68
- msgstr ""
69
-
93
+ #: ../app/models/scc_account.rb:112
70
94
  msgid "Interval not set correctly"
71
95
  msgstr "Intervall nicht richtig gesetzt"
72
96
 
73
- msgid "Last Sync time of scc_account"
74
- msgstr ""
97
+ #: ../app/models/scc_account.rb:117
98
+ msgid "Cron expression is not valid!"
99
+ msgstr "Cron-Ausdruck ungültig!"
75
100
 
76
- msgid "Last synced"
77
- msgstr "Letzte Synchronisation"
101
+ #: ../app/models/scc_account_sync_plan_task_group.rb:5
102
+ msgid "SUSE Subscription"
103
+ msgstr "SUSE Abonnement"
78
104
 
79
- msgid "List all products for scc_account"
105
+ #: ../app/views/scc_account_sync_plan_task_groups/_scc_account_sync_plan_task_groups.html.erb:1
106
+ msgid "SUSE Subscription: "
80
107
  msgstr ""
81
108
 
82
- msgid "List all scc_accounts"
109
+ #: ../app/views/scc_accounts/_form.html.erb:6
110
+ msgid "SUSE Customer Center account"
111
+ msgstr "SUSE Customer Center Konto"
112
+
113
+ #: ../app/views/scc_accounts/_form.html.erb:13
114
+ msgid ""
115
+ "Use your 'Organization credentials' obtained from the SUSE Customer Center."
83
116
  msgstr ""
117
+ "Verwenden Sie die \"Organisationszugangsdaten\" aus dem SUSE Customer "
118
+ "Center."
84
119
 
85
- msgid "Lock on SCC account already taken: %s"
86
- msgstr "Lock für SCC Zugang bereits vergeben: %s"
120
+ #: ../app/views/scc_accounts/_form.html.erb:15
121
+ msgid "Base URL"
122
+ msgstr "Basis URL"
87
123
 
88
- msgid "Login id of scc_account"
89
- msgstr ""
124
+ #: ../app/views/scc_accounts/_form.html.erb:16
125
+ msgid "Interval"
126
+ msgstr "Intervall"
90
127
 
91
- msgid "Name of the scc_account"
92
- msgstr ""
128
+ #: ../app/views/scc_accounts/_form.html.erb:17
129
+ msgid "Sync Date"
130
+ msgstr "Synchronisationsdatum"
93
131
 
94
- msgid "No products selected."
95
- msgstr "Keine Produkte ausgewählt."
132
+ #: ../app/views/scc_accounts/_form.html.erb:24
133
+ msgid "Test Connection"
134
+ msgstr "Verbindung testen"
96
135
 
97
- msgid "Password of scc_account"
98
- msgstr ""
136
+ #: ../app/views/scc_accounts/edit.html.erb:1
137
+ msgid "Edit %s"
138
+ msgstr "%s bearbeiten"
99
139
 
100
- msgid "Please sync your SUSE subscriptions first."
101
- msgstr "Bitte synchronisieren Sie zuerst Ihre SUSE Abonnements."
140
+ #: ../app/views/scc_accounts/index.html.erb:2
141
+ msgid "SUSE subscriptions"
142
+ msgstr "SUSE Abonnements"
102
143
 
103
- msgid "Product already subscribed!"
104
- msgstr "Produkt wurde bereits abonniert!"
144
+ #: ../app/views/scc_accounts/index.html.erb:3
145
+ msgid "Add SCC account"
146
+ msgstr "SCC Konto hinzufügen"
105
147
 
148
+ #: ../app/views/scc_accounts/index.html.erb:9
106
149
  msgid "Products"
107
150
  msgstr "Produkte"
108
151
 
109
- msgid "SUSE Customer Center"
110
- msgstr "SUSE Customer Center"
111
-
112
- msgid "SUSE Customer Center account"
113
- msgstr "SUSE Customer Center Konto"
114
-
115
- msgid "SUSE Subscription"
116
- msgstr "SUSE Abonnement"
117
-
118
- msgid "SUSE Subscription: "
119
- msgstr "SUSE Abonnement:"
120
-
121
- msgid "SUSE Subscriptions"
122
- msgstr "SUSE Abonnements"
152
+ #: ../app/views/scc_accounts/index.html.erb:10
153
+ msgid "Last synced"
154
+ msgstr "Letzte Synchronisation"
123
155
 
124
- msgid "SUSE subscriptions"
125
- msgstr "SUSE Abonnements"
156
+ #: ../app/views/scc_accounts/index.html.erb:11
157
+ msgid "Actions"
158
+ msgstr "Aktionen"
126
159
 
160
+ #: ../app/views/scc_accounts/index.html.erb:24
127
161
  msgid "Select products"
128
162
  msgstr "Produkte auswählen"
129
163
 
130
- msgid "Show an scc_account product"
131
- msgstr ""
132
-
133
- msgid "Show scc_account"
134
- msgstr ""
135
-
136
- msgid "Subscribe SCC Product"
137
- msgstr "SCC Produkt abonnieren"
138
-
139
- msgid "Subscribe product"
140
- msgstr ""
141
-
164
+ #: ../app/views/scc_accounts/index.html.erb:25
142
165
  msgid "Sync"
143
166
  msgstr "Synchronisation"
144
167
 
145
- msgid "Sync Date"
146
- msgstr "Synchronisationsdatum"
147
-
148
- msgid "Sync SUSE subscriptions"
149
- msgstr "SUSE Abonnements synchronisieren"
150
-
151
- msgid "Sync SUSE subscriptions (Products)"
152
- msgstr "SUSE Abonnements (Produkte) synchronisieren"
153
-
154
- msgid "Sync SUSE subscriptions (Repositories)"
155
- msgstr "SUSE Abonnements (Repositorien) synchronisieren"
156
-
157
- msgid "Sync interval"
158
- msgstr ""
159
-
160
- msgid "Sync scc_account"
161
- msgstr ""
162
-
163
- msgid "Sync task started."
164
- msgstr "Sync Job gestartet."
165
-
166
- msgid "Task to subscribe products started."
167
- msgstr "Job zum abonnieren von Produkten gestartet."
168
-
169
- msgid "Test Connection"
170
- msgstr "Verbindung testen"
171
-
172
- msgid "Test connection for scc_account"
173
- msgstr ""
174
-
175
- msgid "The sync interval is used to periodically update the SCC authentication tokens of any imported products."
176
- msgstr ""
168
+ #: ../app/views/scc_accounts/index.html.erb:28
169
+ msgid "Delete %s?"
170
+ msgstr "%s löschen?"
177
171
 
178
- msgid "URL of SUSE for scc_account"
179
- msgstr ""
172
+ #: ../app/views/scc_accounts/new.html.erb:1
173
+ msgid "Add SUSE Customer Center Account"
174
+ msgstr "SUSE Customer Center Konto hinzufügen"
180
175
 
181
- msgid "Unknown"
182
- msgstr "Unbekannt"
176
+ #: ../app/views/scc_accounts/show.html.erb:25
177
+ msgid "SUSE Customer Center"
178
+ msgstr "SUSE Customer Center"
183
179
 
184
- msgid "Update SUSE repositories"
185
- msgstr "SUSE Repositorien aktualisieren"
180
+ #: ../app/views/scc_accounts/show.html.erb:36
181
+ msgid "Please sync your SUSE subscriptions first."
182
+ msgstr "Bitte synchronisieren Sie zuerst Ihre SUSE Abonnements."
186
183
 
187
- msgid "Update SUSE repositories %s"
188
- msgstr "SUSE Repositorien %s aktualisieren"
184
+ #: ../lib/foreman_scc_manager/engine.rb:45
185
+ msgid "SUSE Subscriptions"
186
+ msgstr "SUSE Abonnements"
189
187
 
190
- msgid "Update scc_account"
188
+ #: gemspec.rb:2
189
+ msgid ""
190
+ "Foreman plugin to sync SUSE Customer Center products and repositories into "
191
+ "Katello."
191
192
  msgstr ""
192
-
193
- msgid "Use your 'Organization credentials' obtained from the SUSE Customer Center."
194
- msgstr "Verwenden Sie die \"Organisationszugangsdaten\" aus dem SUSE Customer Center."
195
-
196
- msgid "never synced"
197
- msgstr "Nie synchronisiert"
193
+ "Foreman Plugin um SUSE Customer Center Produkte und Repositorien in Katello "
194
+ "zu importieren."
@@ -17,173 +17,226 @@ msgstr ""
17
17
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
18
  "\n"
19
19
 
20
- msgid "Actions"
20
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:15
21
+ msgid "List all scc_accounts"
21
22
  msgstr ""
22
23
 
23
- msgid "Add SCC account"
24
- msgstr "Add SCC account"
25
-
26
- msgid "Add SUSE Customer Center Account"
27
- msgstr "Add SUSE Customer Center Account"
28
-
29
- msgid "Base URL"
30
- msgstr "Base URL"
31
-
32
- msgid "Bulk subscription of scc_products for scc_account"
24
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:24
25
+ msgid "Show scc_account"
33
26
  msgstr ""
34
27
 
35
- msgid "Create an scc_account"
28
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:32
29
+ msgid "Name of the scc_account"
36
30
  msgstr ""
37
31
 
38
- msgid "Cron expression is not valid!"
32
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:33 ../app/controllers/api/v2/scc_accounts_controller.rb:64
33
+ msgid "Login id of scc_account"
39
34
  msgstr ""
40
35
 
41
- msgid "Delete %s?"
36
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:34 ../app/controllers/api/v2/scc_accounts_controller.rb:65
37
+ msgid "Password of scc_account"
42
38
  msgstr ""
43
39
 
44
- msgid "Delete scc_account"
40
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:35 ../app/controllers/api/v2/scc_accounts_controller.rb:66
41
+ msgid "URL of SUSE for scc_account"
45
42
  msgstr ""
46
43
 
47
- msgid "Edit %s"
44
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:36
45
+ msgid "Interval for syncing scc_account"
48
46
  msgstr ""
49
47
 
50
- msgid "Failed to add task to queue: %s"
51
- msgstr "Failed to add task to queue: %s"
48
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:37
49
+ msgid "Last Sync time of scc_account"
50
+ msgstr ""
52
51
 
53
- msgid "Foreman plugin to sync SUSE Customer Center products and repositories into Katello."
54
- msgstr "Foreman plugin to sync SUSE Customer Center products and repositories into Katello."
52
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:41
53
+ msgid "Create an scc_account"
54
+ msgstr ""
55
55
 
56
- msgid "Interval cannot be nil"
56
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:48
57
+ msgid "Update scc_account"
57
58
  msgstr ""
58
59
 
59
- msgid "Interval for syncing scc_account"
60
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:55
61
+ msgid "Delete scc_account"
60
62
  msgstr ""
61
63
 
62
- msgid "Interval not set correctly"
64
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:61 ../app/controllers/api/v2/scc_accounts_controller.rb:62
65
+ msgid "Test connection for scc_account"
63
66
  msgstr ""
64
67
 
65
- msgid "Last Sync time of scc_account"
68
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:89
69
+ msgid "Sync scc_account"
66
70
  msgstr ""
67
71
 
68
- msgid "Last synced"
69
- msgstr "Last synced"
72
+ #: ../app/controllers/api/v2/scc_accounts_controller.rb:103
73
+ msgid "Bulk subscription of scc_products for scc_account"
74
+ msgstr ""
70
75
 
76
+ #: ../app/controllers/api/v2/scc_products_controller.rb:15
71
77
  msgid "List all products for scc_account"
72
78
  msgstr ""
73
79
 
74
- msgid "List all scc_accounts"
80
+ #: ../app/controllers/api/v2/scc_products_controller.rb:24
81
+ msgid "Show an scc_account product"
82
+ msgstr ""
83
+
84
+ #: ../app/controllers/api/v2/scc_products_controller.rb:29
85
+ msgid "Subscribe product"
75
86
  msgstr ""
76
87
 
88
+ #: ../app/controllers/scc_accounts_controller.rb:64
89
+ msgid "Sync task started."
90
+ msgstr "Sync task started."
91
+
92
+ #: ../app/controllers/scc_accounts_controller.rb:66 ../app/controllers/scc_accounts_controller.rb:86
93
+ msgid "Failed to add task to queue: %s"
94
+ msgstr "Failed to add task to queue: %s"
95
+
96
+ #: ../app/controllers/scc_accounts_controller.rb:68 ../app/controllers/scc_accounts_controller.rb:88
77
97
  msgid "Lock on SCC account already taken: %s"
78
98
  msgstr "Lock on SCC account already taken: %s"
79
99
 
80
- msgid "Login id of scc_account"
81
- msgstr ""
82
-
83
- msgid "Name of the scc_account"
100
+ #: ../app/controllers/scc_accounts_controller.rb:81
101
+ msgid "Task to subscribe products started."
84
102
  msgstr ""
85
103
 
104
+ #: ../app/controllers/scc_accounts_controller.rb:83
86
105
  msgid "No products selected."
87
106
  msgstr ""
88
107
 
89
- msgid "Password of scc_account"
90
- msgstr ""
91
-
92
- msgid "Please sync your SUSE subscriptions first."
93
- msgstr "Please sync your SUSE subscriptions first."
94
-
108
+ #: ../app/lib/actions/scc_manager/subscribe_product.rb:5
95
109
  msgid "Product already subscribed!"
96
110
  msgstr "Product already subscribed!"
97
111
 
98
- msgid "Products"
99
- msgstr ""
112
+ #: ../app/lib/actions/scc_manager/subscribe_product.rb:35 action_names.rb:21
113
+ msgid "Subscribe SCC Product"
114
+ msgstr "Subscribe SCC Product"
100
115
 
101
- msgid "SUSE Customer Center"
102
- msgstr "SUSE Customer Center"
116
+ #: ../app/lib/actions/scc_manager/sync.rb:27 action_names.rb:22
117
+ msgid "Sync SUSE subscriptions"
118
+ msgstr "Sync SUSE subscriptions"
103
119
 
104
- msgid "SUSE Customer Center account"
105
- msgstr "SUSE Customer Center account"
120
+ #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:31
121
+ msgid "Update SUSE repositories %s"
122
+ msgstr ""
106
123
 
107
- msgid "SUSE Subscription"
124
+ #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:31
125
+ msgid "Unknown"
108
126
  msgstr ""
109
127
 
110
- msgid "SUSE Subscription: "
128
+ #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:33 action_names.rb:71
129
+ msgid "Update SUSE repositories"
111
130
  msgstr ""
112
131
 
113
- msgid "SUSE Subscriptions"
114
- msgstr "SUSE Subscriptions"
132
+ #: ../app/lib/actions/scc_manager/sync_products.rb:34 action_names.rb:72
133
+ msgid "Sync SUSE subscriptions (Products)"
134
+ msgstr "Sync SUSE subscriptions (Products)"
115
135
 
116
- msgid "SUSE subscriptions"
117
- msgstr "SUSE subscriptions"
136
+ #: ../app/lib/actions/scc_manager/sync_repositories.rb:33 action_names.rb:73
137
+ msgid "Sync SUSE subscriptions (Repositories)"
138
+ msgstr "Sync SUSE subscriptions (Repositories)"
118
139
 
119
- msgid "Select products"
140
+ #: ../app/models/scc_account.rb:59
141
+ msgid "never synced"
120
142
  msgstr ""
121
143
 
122
- msgid "Show an scc_account product"
144
+ #: ../app/models/scc_account.rb:106
145
+ msgid "Interval cannot be nil"
123
146
  msgstr ""
124
147
 
125
- msgid "Show scc_account"
148
+ #: ../app/models/scc_account.rb:113
149
+ msgid "Interval not set correctly"
126
150
  msgstr ""
127
151
 
128
- msgid "Subscribe SCC Product"
129
- msgstr "Subscribe SCC Product"
130
-
131
- msgid "Subscribe product"
152
+ #: ../app/models/scc_account.rb:118
153
+ msgid "Cron expression is not valid!"
132
154
  msgstr ""
133
155
 
134
- msgid "Sync"
135
- msgstr "Sync"
136
-
137
- msgid "Sync Date"
156
+ #: ../app/models/scc_account_sync_plan_task_group.rb:5
157
+ msgid "SUSE Subscription"
138
158
  msgstr ""
139
159
 
140
- msgid "Sync SUSE subscriptions"
141
- msgstr "Sync SUSE subscriptions"
142
-
143
- msgid "Sync SUSE subscriptions (Products)"
144
- msgstr "Sync SUSE subscriptions (Products)"
160
+ #: ../app/views/scc_account_sync_plan_task_groups/_scc_account_sync_plan_task_groups.html.erb:1
161
+ msgid "SUSE Subscription: "
162
+ msgstr ""
145
163
 
146
- msgid "Sync SUSE subscriptions (Repositories)"
147
- msgstr "Sync SUSE subscriptions (Repositories)"
164
+ #: ../app/views/scc_accounts/_form.html.erb:6
165
+ msgid "SUSE Customer Center account"
166
+ msgstr "SUSE Customer Center account"
148
167
 
149
- msgid "Sync interval"
168
+ #: ../app/views/scc_accounts/_form.html.erb:13
169
+ msgid "Use your 'Organization credentials' obtained from the SUSE Customer Center."
150
170
  msgstr ""
151
171
 
152
- msgid "Sync scc_account"
153
- msgstr ""
172
+ #: ../app/views/scc_accounts/_form.html.erb:15
173
+ msgid "Base URL"
174
+ msgstr "Base URL"
154
175
 
155
- msgid "Sync task started."
156
- msgstr "Sync task started."
176
+ #: ../app/views/scc_accounts/_form.html.erb:16
177
+ msgid "Interval"
178
+ msgstr ""
157
179
 
158
- msgid "Task to subscribe products started."
180
+ #: ../app/views/scc_accounts/_form.html.erb:17
181
+ msgid "Sync Date"
159
182
  msgstr ""
160
183
 
184
+ #: ../app/views/scc_accounts/_form.html.erb:24
161
185
  msgid "Test Connection"
162
186
  msgstr "Test Connection"
163
187
 
164
- msgid "Test connection for scc_account"
188
+ #: ../app/views/scc_accounts/edit.html.erb:1
189
+ msgid "Edit %s"
165
190
  msgstr ""
166
191
 
167
- msgid "The sync interval is used to periodically update the SCC authentication tokens of any imported products."
168
- msgstr ""
192
+ #: ../app/views/scc_accounts/index.html.erb:2
193
+ msgid "SUSE subscriptions"
194
+ msgstr "SUSE subscriptions"
169
195
 
170
- msgid "URL of SUSE for scc_account"
171
- msgstr ""
196
+ #: ../app/views/scc_accounts/index.html.erb:3
197
+ msgid "Add SCC account"
198
+ msgstr "Add SCC account"
172
199
 
173
- msgid "Unknown"
200
+ #: ../app/views/scc_accounts/index.html.erb:9
201
+ msgid "Products"
174
202
  msgstr ""
175
203
 
176
- msgid "Update SUSE repositories"
177
- msgstr ""
204
+ #: ../app/views/scc_accounts/index.html.erb:10
205
+ msgid "Last synced"
206
+ msgstr "Last synced"
178
207
 
179
- msgid "Update SUSE repositories %s"
208
+ #: ../app/views/scc_accounts/index.html.erb:11
209
+ msgid "Actions"
180
210
  msgstr ""
181
211
 
182
- msgid "Update scc_account"
212
+ #: ../app/views/scc_accounts/index.html.erb:24
213
+ msgid "Select products"
183
214
  msgstr ""
184
215
 
185
- msgid "Use your 'Organization credentials' obtained from the SUSE Customer Center."
186
- msgstr ""
216
+ #: ../app/views/scc_accounts/index.html.erb:25
217
+ msgid "Sync"
218
+ msgstr "Sync"
187
219
 
188
- msgid "never synced"
220
+ #: ../app/views/scc_accounts/index.html.erb:28
221
+ msgid "Delete %s?"
189
222
  msgstr ""
223
+
224
+ #: ../app/views/scc_accounts/new.html.erb:1
225
+ msgid "Add SUSE Customer Center Account"
226
+ msgstr "Add SUSE Customer Center Account"
227
+
228
+ #: ../app/views/scc_accounts/show.html.erb:25
229
+ msgid "SUSE Customer Center"
230
+ msgstr "SUSE Customer Center"
231
+
232
+ #: ../app/views/scc_accounts/show.html.erb:36
233
+ msgid "Please sync your SUSE subscriptions first."
234
+ msgstr "Please sync your SUSE subscriptions first."
235
+
236
+ #: ../lib/foreman_scc_manager/engine.rb:64
237
+ msgid "SUSE Subscriptions"
238
+ msgstr "SUSE Subscriptions"
239
+
240
+ #: gemspec.rb:2
241
+ msgid "Foreman plugin to sync SUSE Customer Center products and repositories into Katello."
242
+ msgstr "Foreman plugin to sync SUSE Customer Center products and repositories into Katello."
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_scc_manager 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2020-03-02 13:47+0000\n"
12
- "PO-Revision-Date: 2020-03-02 13:47+0000\n"
11
+ "POT-Creation-Date: 2019-11-12 12:27+0000\n"
12
+ "PO-Revision-Date: 2019-11-12 12:27+0000\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -116,11 +116,11 @@ msgstr ""
116
116
  msgid "Product already subscribed!"
117
117
  msgstr ""
118
118
 
119
- #: ../app/lib/actions/scc_manager/subscribe_product.rb:35 action_names.rb:68
119
+ #: ../app/lib/actions/scc_manager/subscribe_product.rb:35 action_names.rb:21
120
120
  msgid "Subscribe SCC Product"
121
121
  msgstr ""
122
122
 
123
- #: ../app/lib/actions/scc_manager/sync.rb:27 action_names.rb:69
123
+ #: ../app/lib/actions/scc_manager/sync.rb:27 action_names.rb:22
124
124
  msgid "Sync SUSE subscriptions"
125
125
  msgstr ""
126
126
 
@@ -133,15 +133,15 @@ msgid "Unknown"
133
133
  msgstr ""
134
134
 
135
135
  #: ../app/lib/actions/scc_manager/sync_plan_account_repositories.rb:33
136
- #: action_names.rb:70
136
+ #: action_names.rb:71
137
137
  msgid "Update SUSE repositories"
138
138
  msgstr ""
139
139
 
140
- #: ../app/lib/actions/scc_manager/sync_products.rb:34 action_names.rb:71
140
+ #: ../app/lib/actions/scc_manager/sync_products.rb:34 action_names.rb:72
141
141
  msgid "Sync SUSE subscriptions (Products)"
142
142
  msgstr ""
143
143
 
144
- #: ../app/lib/actions/scc_manager/sync_repositories.rb:33 action_names.rb:72
144
+ #: ../app/lib/actions/scc_manager/sync_repositories.rb:33 action_names.rb:73
145
145
  msgid "Sync SUSE subscriptions (Repositories)"
146
146
  msgstr ""
147
147
 
@@ -182,21 +182,15 @@ msgstr ""
182
182
  msgid "Base URL"
183
183
  msgstr ""
184
184
 
185
- #: ../app/views/scc_accounts/_form.html.erb:17
186
- msgid "Sync interval"
185
+ #: ../app/views/scc_accounts/_form.html.erb:16
186
+ msgid "Interval"
187
187
  msgstr ""
188
188
 
189
189
  #: ../app/views/scc_accounts/_form.html.erb:17
190
- msgid ""
191
- "The sync interval is used to periodically update the SCC authentication tokens"
192
- " of any imported products."
193
- msgstr ""
194
-
195
- #: ../app/views/scc_accounts/_form.html.erb:18
196
190
  msgid "Sync Date"
197
191
  msgstr ""
198
192
 
199
- #: ../app/views/scc_accounts/_form.html.erb:25
193
+ #: ../app/views/scc_accounts/_form.html.erb:24
200
194
  msgid "Test Connection"
201
195
  msgstr ""
202
196
 
@@ -248,7 +242,7 @@ msgstr ""
248
242
  msgid "Please sync your SUSE subscriptions first."
249
243
  msgstr ""
250
244
 
251
- #: ../lib/foreman_scc_manager/engine.rb:66
245
+ #: ../lib/foreman_scc_manager/engine.rb:64
252
246
  msgid "SUSE Subscriptions"
253
247
  msgstr ""
254
248
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_scc_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ATIX AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-23 00:00:00.000000000 Z
11
+ date: 2020-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.59'
33
+ version: 0.75.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.59'
40
+ version: 0.75.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: webmock
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -56,14 +56,14 @@ dependencies:
56
56
  name: foreman-tasks
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.10'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.10'
69
69
  - !ruby/object:Gem::Dependency