Class: Setting::Abrt

Inherits:
Setting
  • Object
show all
Defined in:
app/models/setting/abrt.rb

Class Method Summary collapse

Class Method Details

.load_defaultsObject



9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'app/models/setting/abrt.rb', line 9

def self.load_defaults
  return unless super

  Setting.transaction do
    [
      self.set('abrt_server_url', N_('URL of the ABRT server to send reports to'), 'https://localhost/faf'),
      self.set('abrt_server_verify_ssl', N_('Verify ABRT server certificate?'), true),
      self.set('abrt_server_ssl_certificate', N_('SSL certificate path that Foreman would use to communicate with ABRT server'), ''),
      self.set('abrt_server_ssl_priv_key', N_('SSL private key path that Foreman would use to communicate with ABRT server'), ''),
      self.set('abrt_server_ssl_ca_file', N_('SSL CA file that Foreman will use to communicate with ABRT server'), ''),
      self.set('abrt_automatically_forward', N_('Automatically send every report to an ABRT server for analysis?'), false),
      self.set('abrt_server_basic_auth_required', N_('Does the server require authentication through username and password?'), false),
      self.set('abrt_server_basic_auth_username', N_('User name for server authentication'), ''),
      self.set('abrt_server_basic_auth_password', N_('Password for server authentication. WARNING: visible to anyone with access to settings'), ''),
    ].compact.each { |s| self.create s.update(:category => 'Setting::Abrt') }
  end

  true

end