duritong / ruby-cobbler

A ruby interface for interacting with a Cobbler server.
GNU Lesser General Public License v2.1
7 stars 5 forks source link

Fix Base inheritance #3

Closed spkane closed 10 years ago

spkane commented 10 years ago

A fix, so that this works as expected:

irb

require 'cobbler' => true cb = Cobbler::Base => Cobbler::Base cb.hostname = 'cobbler.example.com' => "cobbler.example.com" d = Cobbler::Distro => Cobbler::Distro d.hostname => "cobbler.example.com"

Without this patch d.hostname is nil.

duritong commented 10 years ago

Thanks, this make sense, should have done that already years ago ;-)