inspec/lib/utils/deprecation/global_method.rb
Clinton Wolfe 48e2188047 Remove class var for testing, replace with tramp data
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-01-16 00:24:19 -05:00

9 lines
275 B
Ruby

require 'utils/deprecation/deprecator'
module Inspec
def self.deprecate(group, msg, opts = {})
config_io = opts.delete(:config_io)
deprecator = Inspec::Deprecation::Deprecator.new(config_io: config_io)
deprecator.handle_deprecation(group, msg, opts)
end
end