Sha256: 87e5c358a2fa19dbba826fd3e900b54348a40620db611c74302baf374cfa36c3

Contents?: true

Size: 750 Bytes

Versions: 2

Compression:

Stored size: 750 Bytes

Contents

module KatelloForemanEngine
  class Settings

    def self.initialize_settings
      @settings = {
        'foreman_url' => Katello.config.foreman.url.sub(/\/+\Z/,''),
        'oauth_consumer_key' => Katello.config.foreman.oauth_key,
        'oauth_consumer_secret' => Katello.config.foreman.oauth_secret,
        # TODO: make the following options configurable:
        'foreman_os_family' => 'Redhat',
        'foreman_os_provisioning_template' => 'Katello Kickstart Default',
        'foreman_os_pxe_template' => 'Kickstart default PXElinux',
        'foreman_os_ptable' => 'RedHat default',
      }
    end

    def self.[](key)
      @settings[key.to_s]
    end

    def self.[]=(key, value)
      @settings[key.to_s] = value
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
katello-foreman-engine-0.0.3 lib/katello_foreman_engine/settings.rb
katello-foreman-engine-0.0.2 lib/katello_foreman_engine/settings.rb