checks: meaning of create and new changed (like performance data)
This commit is contained in:
parent
ab1eeda1eb
commit
e53c648263
|
@ -170,14 +170,14 @@ module NSCA
|
||||||
end
|
end
|
||||||
|
|
||||||
class <<self
|
class <<self
|
||||||
def create service, hostname = nil, perfdatas = nil
|
def new service, hostname = nil, perfdatas = nil
|
||||||
cl = Class.new Base
|
cl = Class.new Base
|
||||||
cl.init service, hostname, perfdatas
|
cl.init service, hostname, perfdatas
|
||||||
cl
|
cl
|
||||||
end
|
end
|
||||||
|
|
||||||
def new service, hostname = nil, perfdatas = nil
|
def create service, hostname = nil, perfdatas = nil
|
||||||
cl = create service, hostname, perfdatas
|
cl = new service, hostname, perfdatas
|
||||||
clname = NSCA::Helper.class_name_gen service.to_s
|
clname = NSCA::Helper.class_name_gen service.to_s
|
||||||
self.const_set clname, cl if clname
|
self.const_set clname, cl if clname
|
||||||
cl
|
cl
|
||||||
|
|
Loading…
Reference in a new issue