foreman_scc_manager 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/scc_account.rb +13 -5
- data/db/migrate/20210713092440_add_permissions.rb +2 -2
- data/lib/foreman_scc_manager/version.rb +1 -1
- data/locale/Makefile +9 -4
- data/locale/action_names.rb +87 -4
- data/locale/de/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/de/foreman_scc_manager.po +398 -12
- data/locale/el/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/el/foreman_scc_manager.po +595 -0
- data/locale/en/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/en/foreman_scc_manager.po +394 -8
- data/locale/foreman_scc_manager.pot +603 -47
- data/locale/ja/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/ja/foreman_scc_manager.po +598 -0
- data/locale/ka/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/ka/foreman_scc_manager.po +595 -0
- data/locale/zh_CN/LC_MESSAGES/foreman_scc_manager.mo +0 -0
- data/locale/zh_CN/foreman_scc_manager.po +598 -0
- metadata +26 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf29760fbadb5ab05822159701061bb43f6fce7a94ada64681af0defe0e8056b
|
4
|
+
data.tar.gz: 29e94a2c06159687fe610ff3e0961f3062c1f507be5ba58efdc2487e67be998c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b2624ad1fe80b4200c892c9988c021cf91033879003abb5074ebd3c21bb0481d8ccdf3da86e5d5a11ae354c46540e3160e289bafe3355b522bfe239bb9be264
|
7
|
+
data.tar.gz: c8446acc052cf2c38147093a26024a51c2e0da6abe9712dccb6e786eba50db6d7fba85acf4c685f423d8b9e789c75e1899bbba0fcf005642b76c7d793a94be8c
|
data/README.md
CHANGED
@@ -39,7 +39,7 @@ foreman-installer
|
|
39
39
|
|
40
40
|
## Documentation
|
41
41
|
|
42
|
-
[Plugin documentation](https://docs.
|
42
|
+
[Plugin documentation](https://docs.theforeman.org/nightly/Managing_Content/index-katello.html#Managing_SUSE_Content_content-management)
|
43
43
|
|
44
44
|
## Hammer CLI Extension
|
45
45
|
|
data/app/models/scc_account.rb
CHANGED
@@ -287,16 +287,24 @@ class SccAccount < ApplicationRecord
|
|
287
287
|
end
|
288
288
|
|
289
289
|
def self.download_policy_selection_values
|
290
|
-
names = {
|
290
|
+
names = {
|
291
|
+
::Katello::RootRepository::DOWNLOAD_ON_DEMAND => _('On Demand'),
|
292
|
+
::Katello::RootRepository::DOWNLOAD_IMMEDIATE => _('Immediate')
|
293
|
+
}
|
294
|
+
|
291
295
|
::Katello::RootRepository::DOWNLOAD_POLICIES.map do |p|
|
292
|
-
names.
|
296
|
+
[names.fetch(p, p), p]
|
293
297
|
end
|
294
298
|
end
|
295
299
|
|
296
300
|
def self.mirroring_policy_selection_values
|
297
|
-
names = {
|
298
|
-
|
299
|
-
|
301
|
+
names = {
|
302
|
+
::Katello::RootRepository::MIRRORING_POLICY_ADDITIVE => _('Additive'),
|
303
|
+
::Katello::RootRepository::MIRRORING_POLICY_CONTENT => _('Content Only')
|
304
|
+
}
|
305
|
+
|
306
|
+
::Katello::RootRepository::MIRRORING_POLICIES.map do |p|
|
307
|
+
[names.fetch(p, p), p]
|
300
308
|
end
|
301
309
|
end
|
302
310
|
end
|
@@ -5,9 +5,9 @@ class AddPermissions < ActiveRecord::Migration[6.0]
|
|
5
5
|
].freeze
|
6
6
|
|
7
7
|
def up
|
8
|
-
Permission.
|
8
|
+
Permission.find_or_create_by!(:name => 'test_connection_scc_accounts', :resource_type => 'SccAccount')
|
9
9
|
PRODUCT_PERMISSION_NAMES.each do |p|
|
10
|
-
Permission.
|
10
|
+
Permission.find_or_create_by!(:name => p, :resource_type => 'SccProduct')
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
data/locale/Makefile
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
# make tx-update - download and merge translations from Transifex
|
7
7
|
# make clean - clean everything
|
8
8
|
#
|
9
|
-
DOMAIN =
|
10
|
-
VERSION = $(shell ruby -e '
|
9
|
+
DOMAIN = $(shell ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("../*.gemspec")[0]).name')
|
10
|
+
VERSION = $(shell ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("../*.gemspec")[0]).version')
|
11
11
|
POTFILE = $(DOMAIN).pot
|
12
12
|
MOFILE = $(DOMAIN).mo
|
13
13
|
POFILES = $(shell find . -name '$(DOMAIN).po')
|
@@ -41,7 +41,10 @@ uniq-po:
|
|
41
41
|
msguniq $$f -o $$f ; \
|
42
42
|
done
|
43
43
|
|
44
|
-
tx-
|
44
|
+
tx-new:
|
45
|
+
tx pull --minimum-perc 50 --all
|
46
|
+
|
47
|
+
tx-pull: tx-new $(EDITFILES)
|
45
48
|
tx pull -f
|
46
49
|
for f in $(EDITFILES) ; do \
|
47
50
|
sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
|
@@ -52,7 +55,9 @@ tx-update: tx-pull
|
|
52
55
|
@echo Run rake plugin:gettext[$(DOMAIN)] from the Foreman installation, then make -C locale mo-files to finish
|
53
56
|
@echo
|
54
57
|
|
55
|
-
mo-files: $(MOFILES)
|
58
|
+
build-mo-files: $(MOFILES)
|
59
|
+
|
60
|
+
mo-files: build-mo-files
|
56
61
|
git add $(POFILES) $(POTFILE) ../locale/*/LC_MESSAGES
|
57
62
|
git commit -m "i18n - pulling from tx"
|
58
63
|
@echo
|
data/locale/action_names.rb
CHANGED
@@ -1,5 +1,88 @@
|
|
1
|
-
|
2
|
-
_("
|
3
|
-
_("
|
4
|
-
_("
|
1
|
+
# Autogenerated!
|
2
|
+
_("Import")
|
3
|
+
_("Export Repository")
|
4
|
+
_("Export Library")
|
5
|
+
_("Generate host applicability")
|
6
|
+
_("Bulk generate applicability for hosts")
|
7
|
+
_("Generate repository applicability")
|
8
|
+
_("Synchronize smart proxy")
|
9
|
+
_("Sync capsule")
|
10
|
+
_("Update CDN Configuration")
|
11
|
+
_("Update")
|
12
|
+
_("Delete")
|
13
|
+
_("Errata mail")
|
14
|
+
_("Incremental Update of Content View Version(s) ")
|
15
|
+
_("Import facts")
|
16
|
+
_("Import Puppet classes")
|
17
|
+
_("Abstract async task")
|
18
|
+
_("Syncable export")
|
19
|
+
_("Export")
|
20
|
+
_("Copy version units to library")
|
21
|
+
_("Create Syncable Export History")
|
22
|
+
_("Create Import History")
|
23
|
+
_("Create")
|
24
|
+
_("Delete Activation Key")
|
25
|
+
_("Create Export History")
|
26
|
+
_("Agent action")
|
27
|
+
_("Create Alternate Content Source")
|
28
|
+
_("Destroy Alternate Content Source")
|
29
|
+
_("Refresh Alternate Content Source")
|
30
|
+
_("Update Alternate Content Source")
|
31
|
+
_("Action with sub plans")
|
32
|
+
_("Abstract")
|
33
|
+
_("Remove from Environment")
|
34
|
+
_("Promote")
|
35
|
+
_("Promotion to Environment")
|
36
|
+
_("Publish")
|
37
|
+
_("Remove Versions and Associations")
|
38
|
+
_("Remove Version")
|
39
|
+
_("Import Content View Version")
|
40
|
+
_("Import Default Content View")
|
41
|
+
_("Import Repository")
|
42
|
+
_("Incremental Update")
|
43
|
+
_("Republish Version Repositories")
|
44
|
+
_("Delete Lifecycle Environment")
|
45
|
+
_("Publish Lifecycle Environment Repositories")
|
46
|
+
_("Attach subscriptions")
|
47
|
+
_("Auto attach subscriptions")
|
48
|
+
_("Destroy Content Host")
|
49
|
+
_("Install Applicable Errata")
|
50
|
+
_("Hypervisors")
|
51
|
+
_("Hypervisors update")
|
52
|
+
_("Remove subscriptions")
|
53
|
+
_("Combined Profile Update")
|
54
|
+
_("Update Content Overrides")
|
55
|
+
_("Update for host")
|
56
|
+
_("Update release version for host")
|
57
|
+
_("Updating System Purpose for host")
|
58
|
+
_("Package Profile Update")
|
59
|
+
_("Destroy")
|
60
|
+
_("Run Sync Plan:")
|
61
|
+
_("Enable")
|
62
|
+
_("Disable")
|
63
|
+
_("Verify checksum")
|
64
|
+
_("Create Package Group")
|
65
|
+
_("Upload into")
|
66
|
+
_("Update redhat repository")
|
67
|
+
_("Update http proxy details")
|
68
|
+
_("Update content urls")
|
69
|
+
_("Discover")
|
70
|
+
_("Synchronize")
|
71
|
+
_("Remove Content")
|
72
|
+
_("Instance update")
|
73
|
+
_("Index package groups")
|
74
|
+
_("Index module streams")
|
75
|
+
_("Index errata")
|
76
|
+
_("Index content")
|
77
|
+
_("Filtered index content")
|
78
|
+
_("Fetch pxe files")
|
79
|
+
_("Delete Package Group")
|
80
|
+
_("Update http proxy")
|
81
|
+
_("Reindex subscriptions")
|
82
|
+
_("Delete Product")
|
83
|
+
_("Product Create")
|
5
84
|
_("Sync SUSE subscriptions (Repositories)")
|
85
|
+
_("Sync SUSE subscriptions (Products)")
|
86
|
+
_("Update SUSE repositories")
|
87
|
+
_("Sync SUSE subscriptions")
|
88
|
+
_("Subscribe SCC Product")
|
Binary file
|