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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6946578ff8b15ec04a5c14a78e12107481d47d9f5093a4e1d2501bc79c4c4f94
4
- data.tar.gz: f800326b64951b7909427f7fa7d126e6300550f5bee9afacbb394f83d5fe1cf7
3
+ metadata.gz: d7c8972758e41cdce58310d4614d5cb752da659cc9582007a044fe1b1ef604e7
4
+ data.tar.gz: 335ad36e989387edf40be0684367842c8cc7d066b000575dc7222dfdf835c3ef
5
5
  SHA512:
6
- metadata.gz: d90c05393fe090f811d6cfbb038dd2cb5e45f73ed1359e3bd172c422131a9acb53ac17c0e85c253f9a350462fa5a7954d767af01ffdb9baf3766fcae5acee014
7
- data.tar.gz: acbbdc19ee139f505415d328fe51f463e2d249a82635b75750b73bfbbdd4fd3a84a32f465cac22c806d36b8044f6d07f14045ecb931830af58a39dac19ce94ee
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.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.1'.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")