Sha256: a66baf2e30ab69b4273f08b346b36a481373c43db0cfcefeb964cafff94fe2c3

Contents?: true

Size: 839 Bytes

Versions: 4

Compression:

Stored size: 839 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_rhel_provisioning_template' => 'Katello Kickstart Default for RHEL',
        '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

4 entries across 4 versions & 1 rubygems

Version Path
katello-foreman-engine-0.0.12 lib/katello_foreman_engine/settings.rb
katello-foreman-engine-0.0.11 lib/katello_foreman_engine/settings.rb
katello-foreman-engine-0.0.7 lib/katello_foreman_engine/settings.rb
katello-foreman-engine-0.0.6 lib/katello_foreman_engine/settings.rb