Sha256: 97c7482fb6490c46ff1943f897ce27f3367bccbef0ae619a74925f3ab93d07d7
Contents?: true
Size: 754 Bytes
Versions: 1
Compression:
Stored size: 754 Bytes
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'), true), set('obfuscate_inventory_hostnames', N_('Obfuscate host names 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), ].each { |s| create! s.update(:category => 'Setting::RhCloud')} end true end def self.humanized_category N_('RH Cloud') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foreman_rh_cloud-0.9.8 | app/models/setting/rh_cloud.rb |