Class: Kitchen::Pulumi::InSpecWithoutHosts

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/pulumi/inspec_without_hosts.rb

Overview

InSpec instances act as interfaces to the InSpec gem.

Instance Method Summary collapse

Instance Method Details

#exec(system:) ⇒ void

This method returns an undefined value.

exec executes the InSpec controls of an InSpec profile.

Raises:


14
15
16
17
18
19
# File 'lib/kitchen/pulumi/inspec_without_hosts.rb', line 14

def exec(system:)
  ::Kitchen::Pulumi::InSpec
    .new(options: options, profile_locations: profile_locations)
    .info(message: "#{system}: Verifying")
    .exec
end