2014-05-23 06:45:08 +00:00
|
|
|
require_relative 'base'
|
|
|
|
|
|
|
|
module Puppetx::Yardoc::YARD::Handlers
|
|
|
|
class HostClassHandler < Base
|
|
|
|
handles HostClassDefinition
|
|
|
|
|
|
|
|
process do
|
2014-05-27 05:36:22 +00:00
|
|
|
obj = HostClassObject.new(:root, statement.pops_obj.name)
|
|
|
|
|
|
|
|
statement.pops_obj.tap do |o|
|
|
|
|
if o.parent_class
|
|
|
|
obj.parent_class = P(:root, o.parent_class)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
register obj
|
2014-05-23 06:45:08 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|