mirror of
https://github.com/inspec/inspec
synced 2024-12-03 18:09:32 +00:00
alias rule instead of recreating it
This commit is contained in:
parent
ccabe55608
commit
7a07c02b4d
1 changed files with 1 additions and 4 deletions
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue