[PATCH aeolus-image-rubygem 1/2] Aeolus::Image::Katello models

Matt Wagner matt.wagner at redhat.com
Thu May 24 21:32:11 UTC 2012


On Thu, May 24, 2012 at 02:51:06PM -0400, Matt Wagner wrote:
> +        def self.config=(conf)
> +          %w(site user password).each do |prop|
> +            self.send("#{prop}=", conf[prop.to_sym]) if conf[prop.to_sym].present?
> +          end
> +        end

By the way, this can be used with Conductor by dropping something like
this in Conductor's config/initializers/aeolus-image.rb:

Aeolus::Image::Katello::Base.config = {
  :site => "https://katello.example.com/katello/api",
  :user => "admin",
  :password => "admin"
}

-- Matt



More information about the aeolus-devel mailing list