foreman_scc_manager 2.1.0 → 2.2.1
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
- data/package.json +7 -7
- 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: d7c8972758e41cdce58310d4614d5cb752da659cc9582007a044fe1b1ef604e7
|
4
|
+
data.tar.gz: 335ad36e989387edf40be0684367842c8cc7d066b000575dc7222dfdf835c3ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a88281c4ee2f87c48858b361113f5d5d18660859a70068ded6d551e0d424425595473b18023346fcf948e15a66beeec6bea3a66b5c4808b5d86ee71d61ebc93
|
7
|
+
data.tar.gz: 942e5a886da564164213a2f65f75d2b08520d13a9d7ff6ff5a67615b4b0f24ac1cdf865439924ce5006e1b9937e968eb237ba2c56dc695f48586aad2c4fa7d4d
|
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
|