Method: AwsEc2Instance#inspec_runner
- Defined in:
- lib/resources/aws/aws_ec2_instance.rb
#inspec_runner ⇒ Object
TODO: DRY up, see github.com/chef/inspec/issues/2633 Copied from resource_support/aws/aws_singular_resource_mixin.rb
46 47 48 49 50 51 52 53 54 |
# File 'lib/resources/aws/aws_ec2_instance.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 # TODO: remove after rewrite to include AwsSingularResource inspec if respond_to?(:inspec) end |