class Kitchen::Terraform::InSpec::WithoutHosts
WithoutHosts
is the class of objects which execute InSpec
without hosts.
Attributes
options[RW]
profile_locations[RW]
Public Class Methods
new(options:, profile_locations:)
click to toggle source
initialize prepares a new instance of the class.
@param options [Hash] a mapping of InSpec
options. @param profile_locations
[Array<::String>] the locations of the InSpec
profiles which contain the controls
to be executed.
@return [Kitchen::Terraform::InSpec::WithoutHosts]
# File lib/kitchen/terraform/inspec/without_hosts.rb, line 41 def initialize(options:, profile_locations:) self.options = options self.profile_locations = profile_locations end
Public Instance Methods
exec()
click to toggle source
exec
executes the InSpec
controls of an InSpec
profile.
@raise [Kitchen::TransientFailure] if the execution of InSpec
fails. @return [self]
# File lib/kitchen/terraform/inspec/without_hosts.rb, line 29 def exec ::Kitchen::Terraform::InSpecRunner.new(options: options, profile_locations: profile_locations).exec self end