Sha256: 875a30acc087f4e1424cdc21218276d305854a868186b93b6cdcc1e9ff80e2d3
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
class Setting::RhCloud < Setting def self.load_defaults return unless ActiveRecord::Base.connection.table_exists?('settings') return unless super transaction do [ set('allow_auto_inventory_upload', N_('Allow automatic upload of the host inventory to the Red Hat cloud'), false), set('allow_auto_insights_sync', N_('Allow recommendations synchronization from Red Hat cloud'), false), set('obfuscate_inventory_hostnames', N_('Obfuscate host names sent to Red Hat cloud'), false), set('obfuscate_inventory_ips', N_('Obfuscate ip addresses sent to Red Hat cloud'), false), set('rh_cloud_token', N_('Authentication token to Red Hat cloud services. Used to authenticate requests to cloud APIs'), 'DEFAULT', N_('Red Hat Cloud token'), nil, encrypted: true), set('exclude_installed_packages', N_('Exclude installed packages from Red Hat cloud inventory report'), false), ].each { |s| create! s.update(:category => 'Setting::RhCloud')} end true end def self.humanized_category N_('RH Cloud') end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
foreman_rh_cloud-0.9.14 | app/models/setting/rh_cloud.rb |
foreman_rh_cloud-0.9.13.1 | app/models/setting/rh_cloud.rb |
foreman_rh_cloud-0.9.13 | app/models/setting/rh_cloud.rb |