cookbooks/nagios/libraries/hostdependency.rb in cloud-mu-2.0.0.pre.alpha9 vs cookbooks/nagios/libraries/hostdependency.rb in cloud-mu-2.0.0.pre.beta1
- old
+ new
@@ -124,11 +124,11 @@
pop_object(obj, @dependent_hostgroup_name)
pop(self, obj)
end
end
end
- # rubocop:enable MethodLength
+
def self.create(name)
Nagios.instance.find(Nagios::Hostdependency.new(name))
end
@@ -166,16 +166,16 @@
'inherits_parent' => 'inherits_parent',
'execution_failure_criteria' => 'execution_failure_criteria',
'notification_failure_criteria' => 'notification_failure_criteria',
}
end
- # rubocop:enable MethodLength
+
def merge_members(obj)
obj.host_name.each { |m| push(m) }
obj.hostgroup_name.each { |m| push(m) }
obj.dependent_host_name.each { |m| push_dependency(m) }
obj.dependent_hostgroup_name.each { |m| push_dependency(m) }
end
end
end
-# rubocop:enable ClassLength
+