alias rule instead of recreating it

This commit is contained in:
Dominik Richter 2015-11-02 22:43:20 +01:00
parent ccabe55608
commit 7a07c02b4d

View file

@ -99,10 +99,7 @@ module Inspec
__register_rule rule_class.new(id, opts, &block) __register_rule rule_class.new(id, opts, &block)
end end
define_method :rule do |*args, &block| alias_method :rule, :control
# TODO: add deprecation notice
control(*args, &block)
end
define_method :describe do |*args, &block| define_method :describe do |*args, &block|
path = block.source_location[0] path = block.source_location[0]