Class: Kitchen::Terraform::InSpec::WithoutHosts
- Inherits:
-
Object
- Object
- Kitchen::Terraform::InSpec::WithoutHosts
- Defined in:
- lib/kitchen/terraform/inspec/without_hosts.rb
Overview
WithoutHosts is the class of objects which execute InSpec without hosts.
Instance Method Summary collapse
-
#exec ⇒ self
#exec executes the InSpec controls of an InSpec profile.
-
#initialize(options:, profile_locations:) ⇒ Kitchen::Terraform::InSpec::WithoutHosts
constructor
#initialize prepares a new instance of the class.
Constructor Details
#initialize(options:, profile_locations:) ⇒ Kitchen::Terraform::InSpec::WithoutHosts
#initialize prepares a new instance of the class.
41 42 43 44 |
# File 'lib/kitchen/terraform/inspec/without_hosts.rb', line 41 def initialize(options:, profile_locations:) self. = self.profile_locations = profile_locations end |
Instance Method Details
#exec ⇒ self
#exec executes the InSpec controls of an InSpec profile.
29 30 31 32 33 |
# File 'lib/kitchen/terraform/inspec/without_hosts.rb', line 29 def exec ::Kitchen::Terraform::InSpecRunner.new(options: , profile_locations: profile_locations).exec self end |