mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +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)
|
||||
end
|
||||
|
||||
define_method :rule do |*args, &block|
|
||||
# TODO: add deprecation notice
|
||||
control(*args, &block)
|
||||
end
|
||||
alias_method :rule, :control
|
||||
|
||||
define_method :describe do |*args, &block|
|
||||
path = block.source_location[0]
|
||||
|
|
Loading…
Reference in a new issue