Sha256: 654c47ca928823f98496ce6885a0be3017f2886d85e2f4e2e7e712be6e302fdb

Contents?: true

Size: 856 Bytes

Versions: 15

Compression:

Stored size: 856 Bytes

Contents

# Responsible for silently overwriting setting's default value.
module SettingRegistryBranding
  def branded_settings
    domain = SETTINGS[:domain]
    @branded_settings ||= {
      'email_reply_address' => "satellite-noreply@#{domain}",
      'email_subject_prefix' => '[satellite]',

      'rss_url' => 'https://www.redhat.com/en/rss/blog/channel/red-hat-satellite',
      'foreman_tasks_troubleshooting_url' => 'https://access.redhat.com/solutions/satellite6-tasks#%{label}',
      'bootdisk_allowed_types' => ['subnet','full_host'],
      'template_sync_commit_msg' => 'Templates export made by a Satellite user'
    }.freeze
  end

  def _add(name, default:, **rest)
    branded_default = branded_settings.fetch(name.to_s, default)
    super(name, default: branded_default, **rest) unless UpstreamOnlySettings::SETTINGS.include?(name.to_s)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
foreman_theme_satellite-14.2.0 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-13.3.3 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-14.1.0 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-13.3.2 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-13.3.1 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-14.0.1 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-14.0.0 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-13.3.0 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-13.2.5 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-13.2.4 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-13.2.3 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-13.2.2 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-13.2.1 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-13.2.0 app/services/concerns/setting_registry_branding.rb
foreman_theme_satellite-13.1.0 app/services/concerns/setting_registry_branding.rb