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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6946578ff8b15ec04a5c14a78e12107481d47d9f5093a4e1d2501bc79c4c4f94
4
- data.tar.gz: f800326b64951b7909427f7fa7d126e6300550f5bee9afacbb394f83d5fe1cf7
3
+ metadata.gz: cf29760fbadb5ab05822159701061bb43f6fce7a94ada64681af0defe0e8056b
4
+ data.tar.gz: 29e94a2c06159687fe610ff3e0961f3062c1f507be5ba58efdc2487e67be998c
5
5
  SHA512:
6
- metadata.gz: d90c05393fe090f811d6cfbb038dd2cb5e45f73ed1359e3bd172c422131a9acb53ac17c0e85c253f9a350462fa5a7954d767af01ffdb9baf3766fcae5acee014
7
- data.tar.gz: acbbdc19ee139f505415d328fe51f463e2d249a82635b75750b73bfbbdd4fd3a84a32f465cac22c806d36b8044f6d07f14045ecb931830af58a39dac19ce94ee
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.orcharhino.com/or/docs/sources/guides/suse_linux_enterprise_server/managing_content/managing_suse_content.html)
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
 
@@ -287,16 +287,24 @@ class SccAccount < ApplicationRecord
287
287
  end
288
288
 
289
289
  def self.download_policy_selection_values
290
- names = { 'on_demand' => _('On Demand'), 'immediate' => _('Immediate') }
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.include?(p) ? [names[p], p] : [p, p]
296
+ [names.fetch(p, p), p]
293
297
  end
294
298
  end
295
299
 
296
300
  def self.mirroring_policy_selection_values
297
- names = { 'additive' => _('Additive'), 'mirror_content_only' => _('Content Only') }
298
- SCC_MIRRORING_POLICIES.map do |p|
299
- names.include?(p) ? [names[p], p] : [p, p]
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.create!(:name => 'test_connection_scc_accounts', :resource_type => 'SccAccount')
8
+ Permission.find_or_create_by!(:name => 'test_connection_scc_accounts', :resource_type => 'SccAccount')
9
9
  PRODUCT_PERMISSION_NAMES.each do |p|
10
- Permission.create!(:name => p, :resource_type => SccProduct)
10
+ Permission.find_or_create_by!(:name => p, :resource_type => 'SccProduct')
11
11
  end
12
12
  end
13
13
 
@@ -1,3 +1,3 @@
1
1
  module ForemanSccManager
2
- VERSION = '2.1.0'.freeze
2
+ VERSION = '2.2.0'.freeze
3
3
  end
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 = foreman_scc_manager
10
- VERSION = $(shell ruby -e 'require "rubygems";spec = Gem::Specification::load(Dir.glob("../*.gemspec")[0]);puts spec.version')
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-pull: $(EDITFILES)
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
@@ -1,5 +1,88 @@
1
- _("Subscribe SCC Product")
2
- _("Sync SUSE subscriptions")
3
- _("Update SUSE repositories")
4
- _("Sync SUSE subscriptions (Products)")
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")