Method: AwsIamPasswordPolicy#inspec_runner

Defined in:
lib/resources/aws/aws_iam_password_policy.rb

#inspec_runnerObject

TODO: DRY up, see github.com/chef/inspec/issues/2633 Copied from resource_support/aws/aws_singular_resource_mixin.rb



51
52
53
54
55
56
57
58
59
# File 'lib/resources/aws/aws_iam_password_policy.rb', line 51

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
  # TODO: remove after rewrite to include AwsSingularResource
  inspec if respond_to?(:inspec)
end