lib/bosh/stemcell/operating_system.rb in bosh-stemcell-1.2902.0 vs lib/bosh/stemcell/operating_system.rb in bosh-stemcell-1.2905.0

- old
+ new

@@ -2,10 +2,11 @@ module OperatingSystem def self.for(operating_system_name, operating_system_version = nil) case operating_system_name when 'centos' then Centos.new(operating_system_version) + when 'rhel' then Rhel.new(operating_system_version) when 'ubuntu' then Ubuntu.new(operating_system_version) else raise ArgumentError.new("invalid operating system: #{operating_system_name}") end end @@ -17,9 +18,15 @@ @version = options.fetch(:version) end def ==(other) name == other.name + end + end + + class Rhel < Base + def initialize(version) + super(name: 'rhel', version: version) end end class Centos < Base def initialize(version)