Method: Inspec::Profile.from_path

Defined in:
lib/inspec/profile.rb

.from_path(path, options = nil) ⇒ Object



11
12
13
14
15
16
# File 'lib/inspec/profile.rb', line 11

def self.from_path(path, options = nil)
  opt = {}
  options.each { |k, v| opt[k.to_sym] = v } unless options.nil?
  opt[:path] = path
  Profile.new(opt)
end