Sha256: 029bac39a2da316d18e8752ae1ff1ad5a8f831631ac9288d456037e9be943a35

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 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
      }
    end

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

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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