foreman_theme_satellite 13.2.5 → 14.0.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 +2 -2
- data/app/controllers/concerns/documentation_controller_branding.rb +5 -7
- data/app/helpers/theme_application_helper.rb +1 -1
- data/app/overrides/satellite_name_override.rb +1 -1
- data/app/views/foreman_theme_satellite/_theme_client_side_branding.js.erb +1 -1
- data/db/migrate/20180605150932_deprecate_satellite_templates.rb +4 -0
- data/db/migrate/20181108171732_change_blog_url.rb +1 -1
- data/lib/foreman_theme_satellite/documentation.rb +19 -19
- data/lib/foreman_theme_satellite/engine.rb +6 -23
- data/lib/foreman_theme_satellite/foreman_brand.rb +44 -0
- data/lib/foreman_theme_satellite/replacer_repository.rb +0 -1
- data/lib/foreman_theme_satellite/version.rb +1 -1
- data/lib/tasks/foreman_theme_satellite_tasks.rake +0 -21
- data/package.json +1 -1
- metadata +9 -51
- data/lib/foreman_theme_satellite/branded_words.rb +0 -58
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ad1e23c6062e9751dfde7648814703fc6656e0604763d7f8f228e3a6f3e7cb8
|
4
|
+
data.tar.gz: 7a1b7d7a9119e28ff201abed28caecb39034dae5b1efe41a0dad098c45e192ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1faf4f3c03596f4975f169baefdacab1417e7a2e9ea81ce41d48d6cc86889a4571b9da65df98c53d4e1bd8693929e63fb08642dfa15c4c0cad94905d98b10fd
|
7
|
+
data.tar.gz: c9e43a7fb53b21d2147a27ccc9f7b3407400a3367d35027b6957e30ee1ab05e76fdf3c55eb18dbb0adebb5e08d585aa233c2f30046c20fc08ec0c004b1153a32
|
data/README.md
CHANGED
@@ -36,7 +36,7 @@ const SettingName = ({ setting }) => (
|
|
36
36
|
|
37
37
|
In case there is a need to add more terms to be branded **or bypass branding**,
|
38
38
|
it can be done in
|
39
|
-
[`
|
39
|
+
[`foreman_brand.rb`](https://github.com/RedHatSatellite/foreman_theme_satellite/blob/develop/lib/foreman_theme_satellite/foreman_brand.rb).
|
40
40
|
This is a dictionary where the key is a
|
41
41
|
[Regular Expression](https://regex101.com/) and the value is a replacement
|
42
42
|
string.
|
@@ -303,7 +303,7 @@ Deface::Override.new(:virtual_path => "about/index",
|
|
303
303
|
:text => " <div class=\"stats-well\"><h4><%= _(\"Support\") %></h4> <p>Visit the <%= link_to _('Customer Portal'), \"https://access.redhat.com/\",
|
304
304
|
:rel => \"external\" %> to get support, find solutions to common questions, and more.</p><h6><%= _(\"Documentation\") %></h6>
|
305
305
|
<ul>
|
306
|
-
<li><%= link_to _('Complete Product Documentation for Red Hat Satellite'),\"
|
306
|
+
<li><%= link_to _('Complete Product Documentation for Red Hat Satellite'),\"#{ForemanThemeSatellite.documentation_server}/documentation/en/red_hat_satellite/#{ForemanThemeSatellite::SATELLITE_SHORT_VERSION}\", :rel => \"external\" %></li>
|
307
307
|
<li><%= link_to _('API Resources'), apipie_apipie_path, :title => _('Automate Satellite via a simple and powerful API') %></li>
|
308
308
|
</ul>
|
309
309
|
<h6><%= _(\"Blog\") %></h6>
|
@@ -12,13 +12,11 @@ module DocumentationControllerBranding
|
|
12
12
|
end
|
13
13
|
if url.empty?
|
14
14
|
upstream_url = super(section, options)
|
15
|
-
if (upstream_url =~ /redhat.com/)
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
url = "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite" if url.empty?
|
21
|
-
end
|
15
|
+
url = if (upstream_url =~ /redhat.com/)
|
16
|
+
upstream_url
|
17
|
+
else
|
18
|
+
"#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite"
|
19
|
+
end
|
22
20
|
end
|
23
21
|
url
|
24
22
|
end
|
@@ -37,7 +37,7 @@ Deface::Override.new(:virtual_path => "about/index",
|
|
37
37
|
:text => " <div class=\"stats-well\"><h4><%= _(\"Support\") %></h4> <p>Visit the <%= link_to _('Customer Portal'), \"https://access.redhat.com/\",
|
38
38
|
:rel => \"external\" %> to get support, find solutions to common questions, and more.</p><h6><%= _(\"Documentation\") %></h6>
|
39
39
|
<ul>
|
40
|
-
<li><%= link_to _('Complete Product Documentation for Red Hat Satellite'),\"
|
40
|
+
<li><%= link_to _('Complete Product Documentation for Red Hat Satellite'),\"#{ForemanThemeSatellite.documentation_server}/documentation/en/red_hat_satellite/#{ForemanThemeSatellite::SATELLITE_SHORT_VERSION}\", :rel => \"external\" %></li>
|
41
41
|
<li><%= link_to _('API Resources'), apipie_apipie_path, :title => _('Automate Satellite via a simple and powerful API') %></li>
|
42
42
|
<li><%= link_to _('Templates DSL'), apipie_dsl_apipie_dsl_path, :title => _('Get DSL reference for templates writing') %></li>
|
43
43
|
</ul>
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# rubocop:disable Rails/SkipsModelValidations
|
2
|
+
|
1
3
|
require_relative '../../lib/foreman_theme_satellite/deprecated_templates'
|
2
4
|
|
3
5
|
class DeprecateSatelliteTemplates < ActiveRecord::Migration[5.1]
|
@@ -50,3 +52,5 @@ class DeprecateSatelliteTemplates < ActiveRecord::Migration[5.1]
|
|
50
52
|
destination.operatingsystem_ids = (destination.operatingsystem_ids + source.operatingsystem_ids).uniq
|
51
53
|
end
|
52
54
|
end
|
55
|
+
|
56
|
+
# rubocop:enable Rails/SkipsModelValidations
|
@@ -1,13 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# rubocop:disable
|
3
|
+
# rubocop:disable Layout/LineLength
|
4
4
|
module ForemanThemeSatellite
|
5
5
|
module Documentation
|
6
6
|
USER_GUIDE_DICTIONARY = {
|
7
|
-
# Ansible
|
8
|
-
'ImportingRoles' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_using_ansible_integration/getting_started_with_ansible_in_satellite_ansible#Importing_Ansible_Roles_and_Variables_ansible",
|
9
|
-
'Variables' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_using_ansible_integration/getting_started_with_ansible_in_satellite_ansible#Overriding_Ansible_Variables_in_satellite_ansible",
|
10
|
-
|
11
7
|
# Managing Hosts
|
12
8
|
'ForemanRemoteExecution' => "#{ForemanThemeSatellite.documentation_root}/managing_hosts/configuring_and_setting_up_remote_jobs_managing-hosts",
|
13
9
|
'ExecutingaJob' => "#{ForemanThemeSatellite.documentation_root}/managing_hosts/configuring_and_setting_up_remote_jobs_managing-hosts#Configuring_the_Global_capsule_Remote_Execution_Setting_in_satellite_managing-hosts",
|
@@ -34,18 +30,18 @@ module ForemanThemeSatellite
|
|
34
30
|
'Networking' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/configuring_networking_provisioning#Adding_a_Subnet_to_Server_provisioning",
|
35
31
|
|
36
32
|
# Puppet Guide
|
37
|
-
'FactsandtheENC' => "#{ForemanThemeSatellite.documentation_root}/
|
38
|
-
'using-config-groups' => "#{ForemanThemeSatellite.documentation_root}/
|
39
|
-
'SmartMatchers' => "#{ForemanThemeSatellite.documentation_root}/
|
40
|
-
'Parameters' => "#{ForemanThemeSatellite.documentation_root}/
|
41
|
-
'Classes' => "#{ForemanThemeSatellite.documentation_root}/
|
42
|
-
'Environments' => "#{ForemanThemeSatellite.documentation_root}/
|
33
|
+
'FactsandtheENC' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_by_using_puppet_integration/introducing-configuration-management-using-puppet_managing-configurations-puppet#performing-configuration-management_managing-configurations-puppet",
|
34
|
+
'using-config-groups' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_by_using_puppet_integration/creating-a-puppet-config-group_managing-configurations-puppet",
|
35
|
+
'SmartMatchers' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_by_using_puppet_integration/configuring_puppet_smart_class_parameters_managing-configurations-puppet",
|
36
|
+
'Parameters' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_by_using_puppet_integration/configuring_puppet_smart_class_parameters_managing-configurations-puppet",
|
37
|
+
'Classes' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_by_using_puppet_integration/importing_puppet_classes_and_environments_managing-configurations-puppet",
|
38
|
+
'Environments' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_by_using_puppet_integration/creating_a_custom_puppet_environment_managing-configurations-puppet",
|
43
39
|
|
44
40
|
# Administering
|
45
41
|
'ConfigurationOptions' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/",
|
46
42
|
'PuppetReports' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/monitoring_resources_admin#Using_the_Project_Content_Dashboard_admin",
|
47
43
|
'Mail_Notifications' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/configuring_email_notifications_admin",
|
48
|
-
'Realm' => "#{ForemanThemeSatellite.documentation_root}/installing_satellite_server_in_a_connected_network_environment/configuring_external_authentication_satellite#
|
44
|
+
'Realm' => "#{ForemanThemeSatellite.documentation_root}/installing_satellite_server_in_a_connected_network_environment/configuring_external_authentication_satellite#configuring-project-to-manage-the-lifecycle-of-a-host-registered-to-a-freeipa-realm_satellite",
|
49
45
|
'Searching' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/searching_and_bookmarking_admin",
|
50
46
|
'RolesandPermissions' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/managing_users_and_roles_admin",
|
51
47
|
'LDAPAuthentication' => "#{ForemanThemeSatellite.documentation_root}/installing_satellite_server_in_a_connected_network_environment/configuring_external_authentication_satellite#Using_LDAP_satellite",
|
@@ -74,16 +70,19 @@ module ForemanThemeSatellite
|
|
74
70
|
|
75
71
|
PLUGINS_DOCUMENTATION = {
|
76
72
|
'foreman_azure' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/provisioning_cloud_instances_on_microsoft_azure_resource_manager_azure-provisioning",
|
77
|
-
'foreman_discovery' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/
|
73
|
+
'foreman_discovery' => "#{ForemanThemeSatellite.documentation_root}/provisioning_hosts/discovering-hosts-on-a-network_provisioning",
|
78
74
|
}.freeze
|
79
75
|
|
80
|
-
SPECIAL_LINKS = [
|
81
|
-
[/docs\.theforeman\.org\/.*?\/Managing_Hosts\/.*?registering-a-host.*?managing-hosts/i, "#{ForemanThemeSatellite.documentation_root}/managing_hosts/registering_hosts_to_server_managing-hosts#Registering_Hosts_by_Using_Global_Registration_managing-hosts"],
|
82
|
-
]
|
83
|
-
|
84
76
|
DOCS_GUIDES_LINKS = {
|
77
|
+
'Managing_Content' => {
|
78
|
+
'Products_and_Repositories_content-management' => "#{ForemanThemeSatellite.documentation_root}/managing_content/importing_content_content-management#Products_and_Repositories_content-management",
|
79
|
+
},
|
85
80
|
'Managing_Hosts' => {
|
86
81
|
'registering-a-host_managing-hosts' => "#{ForemanThemeSatellite.documentation_root}/managing_hosts/registering_hosts_to_server_managing-hosts#Registering_Hosts_by_Using_Global_Registration_managing-hosts",
|
82
|
+
},
|
83
|
+
'Managing_Configurations_Ansible' => {
|
84
|
+
'Importing_Ansible_Roles_and_Variables_ansible' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_by_using_ansible_integration/getting_started_with_ansible_in_satellite_ansible#Importing_Ansible_Roles_and_Variables_ansible",
|
85
|
+
'Overriding_Ansible_Variables_in_foreman_ansible' => "#{ForemanThemeSatellite.documentation_root}/managing_configurations_by_using_ansible_integration/getting_started_with_ansible_in_satellite_ansible#Overriding_Ansible_Variables_in_satellite_ansible",
|
87
86
|
}
|
88
87
|
}.freeze
|
89
88
|
|
@@ -96,11 +95,12 @@ module ForemanThemeSatellite
|
|
96
95
|
source.map do |k, v|
|
97
96
|
key = "#{prefix}/#{k}"
|
98
97
|
if v.is_a?(Hash)
|
99
|
-
key_values.concat(
|
98
|
+
key_values.concat(nested_to_flat_k_v(key, v))
|
100
99
|
else
|
101
|
-
key_values.concat([key, v])
|
100
|
+
key_values.concat([[key, v]])
|
102
101
|
end
|
103
102
|
end
|
103
|
+
key_values
|
104
104
|
end
|
105
105
|
end
|
106
106
|
end
|
@@ -6,21 +6,11 @@ require 'deface'
|
|
6
6
|
module ForemanThemeSatellite
|
7
7
|
class Engine < ::Rails::Engine
|
8
8
|
engine_name 'foreman_theme_satellite'
|
9
|
-
|
10
|
-
config.eager_load_paths += Dir["#{config.root}/app/overrides"]
|
11
|
-
config.eager_load_paths += Dir["#{config.root}/app/controllers/concerns"]
|
12
|
-
config.eager_load_paths += Dir["#{config.root}/app/helpers"]
|
13
|
-
config.eager_load_paths += Dir["#{config.root}/app/models/concerns"]
|
14
|
-
config.eager_load_paths += Dir["#{config.root}/app/services/concerns"]
|
15
|
-
config.eager_load_paths += Dir["#{config.root}/lib/foreman_theme_satellite"]
|
16
|
-
|
17
|
-
initializer 'foreman_theme_satellite.load_default_settings', :before => :load_config_initializers do |app|
|
18
|
-
SettingRegistry.prepend SettingRegistryBranding
|
19
|
-
end
|
9
|
+
config.eager_load_paths += Dir["#{config.root}/lib"]
|
20
10
|
|
21
11
|
initializer 'foreman_theme_satellite.register_plugin', :before=> :finisher_hook do |app|
|
22
12
|
Foreman::Plugin.register :foreman_theme_satellite do
|
23
|
-
requires_foreman '>= 3.
|
13
|
+
requires_foreman '>= 3.13.0'
|
24
14
|
register_gettext
|
25
15
|
|
26
16
|
settings do
|
@@ -36,7 +26,7 @@ module ForemanThemeSatellite
|
|
36
26
|
end
|
37
27
|
end
|
38
28
|
|
39
|
-
|
29
|
+
tests_to_skip ({
|
40
30
|
"ComputeResourceTest" => ["friendly provider name"],
|
41
31
|
"RealmIntegrationTest" => ["create new page"],
|
42
32
|
"SmartProxyIntegrationTest" => ["create new page", "index page"],
|
@@ -49,7 +39,7 @@ module ForemanThemeSatellite
|
|
49
39
|
"OrganizationTest" => ["should clone organization with all associations"],
|
50
40
|
"RealmTest" => ["realm can be assigned to locations"],
|
51
41
|
"LocationTest" => ["should clone location with all associations"]
|
52
|
-
|
42
|
+
})
|
53
43
|
|
54
44
|
extend_rabl_template 'api/v2/home/status', 'api/v2/home/status_extensions'
|
55
45
|
extend_template_helpers ForemanThemeSatellite::RendererMethods
|
@@ -69,19 +59,12 @@ module ForemanThemeSatellite
|
|
69
59
|
end
|
70
60
|
end
|
71
61
|
|
72
|
-
initializer 'foreman_theme_satellite.rails_loading_workaround' do
|
73
|
-
# Without this, in production environment the module gets prepended too
|
74
|
-
# late and the extensions do not get applied
|
75
|
-
# the idea is stolen from https://github.com/theforeman/foreman_remote_execution/commit/2efd0a6eccfc19e282f453d5629cf46e729963eb
|
76
|
-
ProvisioningTemplatesHelper.prepend ProvisioningTemplatesHelperBranding
|
77
|
-
end
|
78
|
-
|
79
62
|
# Include concerns in this config.to_prepare block
|
80
63
|
config.to_prepare do
|
81
64
|
begin
|
65
|
+
SettingRegistry.prepend SettingRegistryBranding
|
82
66
|
# Include your monkey-patches over here
|
83
67
|
::ForemanGoogle::GCE.send(:prepend, GCE::ClassMethods) if Foreman::Plugin.installed?("foreman_google")
|
84
|
-
require 'rss_checker_branding'
|
85
68
|
UINotifications::RssNotificationsChecker.send :prepend, RssCheckerBranding
|
86
69
|
Foreman::Model::Openstack.send :include, Openstack
|
87
70
|
Foreman::Model::Ovirt.send :include, Ovirt
|
@@ -139,7 +122,7 @@ module ForemanThemeSatellite
|
|
139
122
|
end
|
140
123
|
|
141
124
|
def self.documentation_server
|
142
|
-
@documentation_server ||= metadata_field('documentation_server', 'https://
|
125
|
+
@documentation_server ||= metadata_field('documentation_server', 'https://docs.redhat.com')
|
143
126
|
end
|
144
127
|
|
145
128
|
def self.documentation_version
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ForemanThemeSatellite
|
4
|
+
# This list is used for substitution of branded words by both client and server.
|
5
|
+
# The server just uses the list as is.
|
6
|
+
# The client is consuming it by generated .js.erb file: app/assets/javascripts/theme_client_side_branding.js.erb.
|
7
|
+
# For now, modifiers are not supported by the generator.
|
8
|
+
# Make sure the regexp works both with Ruby and JavaScript.
|
9
|
+
# Entries are processed in order and first wins.
|
10
|
+
# Occurrences of "proxy" should be treated as a bug as it is unclear whether the author refers to a HTTP(S) proxy or a Capsule
|
11
|
+
FOREMAN_BRAND = {
|
12
|
+
/%{proxy}/ => '%{proxy}',
|
13
|
+
/%{foreman}/ => '%{foreman}',
|
14
|
+
/\b[Pp]roxy [Hh][Tt][Tt][Pp]\b(?!-)/ => 'Proxy HTTP', # Workaround for French translation
|
15
|
+
/\b[Pp]roxies [Hh][Tt][Tt][Pp]\b(?!-)/ => 'Proxies HTTP', # Workaround for French translation
|
16
|
+
## BEGIN Remove after imprecise strings have been fixed in core
|
17
|
+
/\b[Hh][Tt][Tt][Pp](?:\([sS]\))? [Pp]roxy\b(?!-)/ => 'HTTP proxy',
|
18
|
+
/\b[Hh][Tt][Tt][Pp](?:\([sS]\))? [Pp]roxies\b(?!-)/ => 'HTTP proxies',
|
19
|
+
/\bHTTP\(S\) proxy\b(?!-)/ => 'HTTP(S) proxy',
|
20
|
+
/\bIgnore Proxy\b(?!-)/ => 'Ignore Proxy',
|
21
|
+
/\bIgnore proxy\b(?!-)/ => 'Ignore Proxy',
|
22
|
+
/\bSystem-wide proxies\b(?!-)/ => 'System-wide proxies',
|
23
|
+
/\bLeave this blank if no proxy is used\b(?!-)/ => 'Leave this blank if no proxy is used',
|
24
|
+
/\bbypass proxy settings\b(?!-)/ => 'bypass proxy settings',
|
25
|
+
/\bURL of the proxy\b(?!-)/ => 'URL of the proxy',
|
26
|
+
%r{\bhttps://proxy.example.com:8080\b(?!-)} => 'https://proxy.example.com:8080',
|
27
|
+
/\bproxy for all outgoing HTTP connections\b(?!-)/ => 'proxy for all outgoing HTTP connections',
|
28
|
+
/\bperform various actions through those proxies\b(?!-)/ => 'perform various actions through those proxies',
|
29
|
+
## END
|
30
|
+
/\b[Ff]oreman\b(?!-)/ => 'Satellite',
|
31
|
+
/\b[Ss]mart[- ]?[pP]roxy\b(?!-)/ => 'Capsule',
|
32
|
+
/\b[Ss]mart[- ]?[pP]roxies\b(?!-)/ => 'Capsules',
|
33
|
+
/\b[Pp]roxy\b(?!-)/ => 'Capsule',
|
34
|
+
/\b[Pp]roxies\b(?!-)/ => 'Capsules',
|
35
|
+
/\b[Oo][Vv]irt\b(?!-)/ => 'RHV',
|
36
|
+
/\bFreeIPA\b(?!-)/ => 'Red Hat Identity Management',
|
37
|
+
/\b[Oo]pen[Ss]tack\b(?!-)/ => 'Red Hat OpenStack Platform',
|
38
|
+
/\b[Kk]atello 4.0\b(?!-)/ => 'Satellite 6.11',
|
39
|
+
/\b[Kk]atello 4.10\b(?!-)/ => 'Satellite 6.15',
|
40
|
+
/\b[Kk]atello 4.11\b(?!-)/ => 'Satellite 6.15',
|
41
|
+
/\b[Kk]atello 4.12\b(?!-)/ => 'Satellite 6.16',
|
42
|
+
/\b[Kk]atello 4.13\b(?!-)/ => 'Satellite 6.16',
|
43
|
+
}.freeze
|
44
|
+
end
|
@@ -14,21 +14,6 @@ namespace :test do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
namespace :foreman_theme_satellite do
|
17
|
-
task :rubocop do
|
18
|
-
begin
|
19
|
-
require 'rubocop/rake_task'
|
20
|
-
RuboCop::RakeTask.new(:rubocop_foreman_theme_satellite) do |task|
|
21
|
-
task.patterns = ["#{ForemanThemeSatellite::Engine.root}/app/**/*.rb",
|
22
|
-
"#{ForemanThemeSatellite::Engine.root}/lib/**/*.rb",
|
23
|
-
"#{ForemanThemeSatellite::Engine.root}/test/**/*.rb"]
|
24
|
-
end
|
25
|
-
rescue
|
26
|
-
puts 'Rubocop not loaded.'
|
27
|
-
end
|
28
|
-
|
29
|
-
Rake::Task['rubocop_foreman_theme_satellite'].invoke
|
30
|
-
end
|
31
|
-
|
32
17
|
desc 'Validate documentation links against given TOC file'
|
33
18
|
task :validate_docs do
|
34
19
|
toc_file = ENV['TOC']
|
@@ -44,7 +29,6 @@ namespace :foreman_theme_satellite do
|
|
44
29
|
|
45
30
|
all_links = ForemanThemeSatellite::Documentation::USER_GUIDE_DICTIONARY
|
46
31
|
.merge(ForemanThemeSatellite::Documentation::PLUGINS_DOCUMENTATION)
|
47
|
-
.merge(Hash[ForemanThemeSatellite::Documentation::SPECIAL_LINKS])
|
48
32
|
.merge(ForemanThemeSatellite::Documentation.flat_docs_guides_links)
|
49
33
|
|
50
34
|
failed = all_links.filter { |_key, doc_address| doc_address.include?('/html/') && !checker.test_link(doc_address) }
|
@@ -57,8 +41,3 @@ end
|
|
57
41
|
|
58
42
|
Rake::Task[:test].enhance ['test:foreman_theme_satellite']
|
59
43
|
Rake::Task['test:foreman_theme_satellite'].enhance ['foreman_theme_satellite:validate_docs']
|
60
|
-
|
61
|
-
load 'tasks/jenkins.rake'
|
62
|
-
if Rake::Task.task_defined?(:'jenkins:unit')
|
63
|
-
Rake::Task['jenkins:unit'].enhance ['test:foreman_theme_satellite', 'foreman_theme_satellite:rubocop']
|
64
|
-
end
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_theme_satellite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 14.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shimon Stein
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-09-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -54,61 +54,19 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name: rubocop
|
57
|
+
name: theforeman-rubocop
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '0'
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: rubocop-minitest
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
60
|
+
- - "~>"
|
75
61
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
62
|
+
version: 0.1.0
|
77
63
|
type: :development
|
78
64
|
prerelease: false
|
79
65
|
version_requirements: !ruby/object:Gem::Requirement
|
80
66
|
requirements:
|
81
|
-
- - "
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '0'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: rubocop-performance
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
67
|
+
- - "~>"
|
89
68
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: rubocop-rails
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '0'
|
105
|
-
type: :development
|
106
|
-
prerelease: false
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - ">="
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: '0'
|
69
|
+
version: 0.1.0
|
112
70
|
description: Theme changes for Satellite 6.
|
113
71
|
email:
|
114
72
|
- sshtein@redhat.com
|
@@ -182,10 +140,10 @@ files:
|
|
182
140
|
- db/seeds.d/069-provisioning_templates_defaults.rb
|
183
141
|
- db/seeds.d/850-global_parameters.rb
|
184
142
|
- lib/foreman_theme_satellite.rb
|
185
|
-
- lib/foreman_theme_satellite/branded_words.rb
|
186
143
|
- lib/foreman_theme_satellite/deprecated_templates.rb
|
187
144
|
- lib/foreman_theme_satellite/documentation.rb
|
188
145
|
- lib/foreman_theme_satellite/engine.rb
|
146
|
+
- lib/foreman_theme_satellite/foreman_brand.rb
|
189
147
|
- lib/foreman_theme_satellite/pry_rack.rb
|
190
148
|
- lib/foreman_theme_satellite/replacer_repository.rb
|
191
149
|
- lib/foreman_theme_satellite/rss_checker_branding.rb
|
@@ -221,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
179
|
- !ruby/object:Gem::Version
|
222
180
|
version: '0'
|
223
181
|
requirements: []
|
224
|
-
rubygems_version: 3.5.
|
182
|
+
rubygems_version: 3.5.11
|
225
183
|
signing_key:
|
226
184
|
specification_version: 4
|
227
185
|
summary: This is a plugin that enables building a theme for Foreman.
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ForemanThemeSatellite
|
4
|
-
# This list is used for substitution of branded words by both client and server.
|
5
|
-
# The server just uses the list as is.
|
6
|
-
# The client is consuming it by generated .js.erb file: app/assets/javascripts/theme_client_side_branding.js.erb.
|
7
|
-
# For now, modifiers are not supported by the generator.
|
8
|
-
# Make sure the regexp works both with Ruby and JavaScript.
|
9
|
-
# Entries are processed in order and first wins.
|
10
|
-
FOREMAN_BRAND = {
|
11
|
-
/%{proxy}/ => '%{proxy}',
|
12
|
-
/%{foreman}/ => '%{foreman}',
|
13
|
-
/\b[Hh][Tt][Tt][Pp] [Pp]roxy\b(?!-)/ => 'HTTP Proxy',
|
14
|
-
/\b[Hh][Tt][Tt][Pp] [Pp]roxies\b(?!-)/ => 'HTTP Proxies',
|
15
|
-
/\bHTTP\(S\) proxy\b(?!-)/ => 'HTTP(S) proxy',
|
16
|
-
/\bIgnore Proxy\b(?!-)/ => 'Ignore Proxy',
|
17
|
-
/\bIgnore proxy\b(?!-)/ => 'Ignore Proxy',
|
18
|
-
/\bSystem-wide proxies\b(?!-)/ => 'System-wide proxies',
|
19
|
-
/\bLeave this blank if no proxy is used\b(?!-)/ => 'Leave this blank if no proxy is used',
|
20
|
-
/\bbypass proxy settings\b(?!-)/ => 'bypass proxy settings',
|
21
|
-
/\bURL of the proxy\b(?!-)/ => 'URL of the proxy',
|
22
|
-
%r{\bhttps://proxy.example.com:8080\b(?!-)} => 'https://proxy.example.com:8080',
|
23
|
-
/\bproxy for all outgoing HTTP connections\b(?!-)/ => 'proxy for all outgoing HTTP connections',
|
24
|
-
/\bperform various actions through those proxies\b(?!-)/ => 'perform various actions through those proxies',
|
25
|
-
/\bForeman\b(?!-)/ => 'Satellite',
|
26
|
-
/\bforeman\b(?!-)/ => 'satellite',
|
27
|
-
/\bsmart-proxy\b(?!-)/ => 'capsule',
|
28
|
-
/\bSmart-proxy\b(?!-)/ => 'Capsule',
|
29
|
-
/\bsmart proxies\b(?!-)/ => 'capsules',
|
30
|
-
/\bSmart proxies\b(?!-)/ => 'Capsules',
|
31
|
-
/\bsmart-proxies\b(?!-)/ => 'capsules',
|
32
|
-
/\bSmart-proxies\b(?!-)/ => 'Capsules',
|
33
|
-
/\bSmart Proxies\b(?!-)/ => 'Capsules',
|
34
|
-
/\bSmart Proxy\(ies\)(?!-)/ => 'Capsule(s)',
|
35
|
-
/\bSmart Proxy\b(?!-)/ => 'Capsule',
|
36
|
-
/\bsmart proxy\b(?!-)/ => 'capsule',
|
37
|
-
/\bSmart-Proxies\b(?!-)/ => 'Capsules',
|
38
|
-
/\bSmart proxy\b(?!-)/ => 'Capsule',
|
39
|
-
/\bSmart-Proxy\b(?!-)/ => 'Capsule',
|
40
|
-
/\boVirt\b(?!-)/ => 'RHEV',
|
41
|
-
/\bovirt\b(?!-)/ => 'RHEV',
|
42
|
-
/\bOvirt\b(?!-)/ => 'RHEV',
|
43
|
-
/\bFreeIPA\b(?!-)/ => 'Red Hat Identity Management',
|
44
|
-
/\bOpenStack\b(?!-)/ => 'RHEL OpenStack Platform',
|
45
|
-
/\bopenstack\b(?!-)/ => 'RHEL OpenStack Platform',
|
46
|
-
/\bOpenstack\b(?!-)/ => 'RHEL OpenStack Platform',
|
47
|
-
/\bProxy\b(?!-)/ => 'Capsule',
|
48
|
-
/\bproxy\b(?!-)/ => 'Capsule',
|
49
|
-
/\bProxies\b(?!-)/ => 'Capsules',
|
50
|
-
/\bproxies\b(?!-)/ => 'Capsules',
|
51
|
-
/\b[Kk]atello 4.0\b(?!-)/ => 'Satellite 6.11',
|
52
|
-
/\b[Kk]atello 4.10\b(?!-)/ => 'Satellite 6.15',
|
53
|
-
/\b[Kk]atello 4.11\b(?!-)/ => 'Satellite 6.15',
|
54
|
-
/\b[Kk]atello 4.12\b(?!-)/ => 'Satellite 6.16',
|
55
|
-
/\b[Kk]atello 4.13\b(?!-)/ => 'Satellite 6.16',
|
56
|
-
%r{https://theforeman.org/plugins/katello/(?!-)} => "https://access.redhat.com/documentation/en-us/red_hat_satellite/#{ForemanThemeSatellite::SATELLITE_SHORT_VERSION}/html/managing_hosts/registering_hosts#registering-a-host-to-satellite-using-the-bootstrap-script"
|
57
|
-
}.freeze
|
58
|
-
end
|