Method: Inspec::Runner#add_target

Defined in:
lib/inspec/runner.rb

#add_target(target, options = {}) ⇒ Object



64
65
66
67
68
# File 'lib/inspec/runner.rb', line 64

def add_target(target, options = {})
  profile = Inspec::Profile.for_target(target, options)
  fail "Could not resolve #{target} to valid input." if profile.nil?
  add_profile(profile)
end