mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
This is one place where rubocop and I strongly disagree.
Using self.something makes it more clear. Sometimes that is necessary. Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
03a1fba565
commit
7e5c27410e
1 changed files with 2 additions and 2 deletions
|
@ -261,7 +261,7 @@ module FilterTable
|
||||||
|
|
||||||
current_raw_data.find_all do |row|
|
current_raw_data.find_all do |row|
|
||||||
next unless row.key?(field)
|
next unless row.key?(field)
|
||||||
self.send(method_ref, row[field], desired_value)
|
send(method_ref, row[field], desired_value)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -358,7 +358,7 @@ module FilterTable
|
||||||
resource_class.send(:define_method, method_name) do |*args, &block|
|
resource_class.send(:define_method, method_name) do |*args, &block|
|
||||||
begin
|
begin
|
||||||
# self here is the resource instance
|
# self here is the resource instance
|
||||||
filter_table_instance = table_class.new(self, self.send(raw_data_fetcher_method_name), ' with')
|
filter_table_instance = table_class.new(self, send(raw_data_fetcher_method_name), ' with')
|
||||||
filter_table_instance.send(method_name, *args, &block)
|
filter_table_instance.send(method_name, *args, &block)
|
||||||
rescue Inspec::Exceptions::ResourceFailed, Inspec::Exceptions::ResourceSkipped => e
|
rescue Inspec::Exceptions::ResourceFailed, Inspec::Exceptions::ResourceSkipped => e
|
||||||
FilterTable::ExceptionCatcher.new(resource_class, e)
|
FilterTable::ExceptionCatcher.new(resource_class, e)
|
||||||
|
|
Loading…
Reference in a new issue