lib/puppet/interface/action.rb in puppet-2.7.13 vs lib/puppet/interface/action.rb in puppet-2.7.14
- old
+ new
@@ -210,10 +210,10 @@
end
WRAPPER
if @face.is_a?(Class)
@face.class_eval do eval wrapper, nil, file, line end
- @face.define_method(internal_name, &block)
+ @face.send(:define_method, internal_name, &block)
@when_invoked = @face.instance_method(name)
else
@face.instance_eval do eval wrapper, nil, file, line end
@face.meta_def(internal_name, &block)
@when_invoked = @face.method(name).unbind