Method: Inspec::Runner#eval_with_virtual_profile
- Defined in:
- lib/inspec/runner.rb
#eval_with_virtual_profile(command) ⇒ Object
201 202 203 204 205 206 207 |
# File 'lib/inspec/runner.rb', line 201 def eval_with_virtual_profile(command) require 'fetchers/mock' add_target({ 'inspec.yml' => 'name: inspec-shell' }) our_profile = @target_profiles.first ctx = our_profile.runner_context ctx.load(command) end |