Method: AwsResourceMixin#inspec_runner

Defined in:
lib/resource_support/aws/aws_resource_mixin.rb

#inspec_runnerObject



46
47
48
49
50
51
52
53
# File 'lib/resource_support/aws/aws_resource_mixin.rb', line 46

def inspec_runner
  # When running under inspec-cli, we have an 'inspec' method that
  # returns the runner. When running under unit tests, we don't
  # have that, but we still have to call this to pass something
  # (nil is OK) to the backend.
  # TODO: remove with https://github.com/chef/inspec-aws/issues/216
  inspec if respond_to?(:inspec)
end