class Inspec::Plugins::SourceReader
Public Class Methods
plugin_registry()
click to toggle source
# File lib/inspec/plugin/v1/plugin_types/source_reader.rb, line 6 def self.plugin_registry Inspec::SourceReader end
Public Instance Methods
libraries()
click to toggle source
Retrieve this profile's libraries
@return [Hash] Collection with references pointing to library contents
# File lib/inspec/plugin/v1/plugin_types/source_reader.rb, line 31 def libraries raise "SourceReader #{self} does not implement `libraries()`. This method is required" end
metadata()
click to toggle source
Retrieve this profile's metadata.
@return [Inspec::Metadata] profile metadata
# File lib/inspec/plugin/v1/plugin_types/source_reader.rb, line 13 def metadata raise "SourceReader #{self} does not implement `metadata()`. This method is required" end
tests()
click to toggle source
Retrieve this profile's tests
“tests” here refers to a test file. Individual controls and anonymous tests are later extracted from the raw contents of a test file. The map her simply maps from a test file name to the file contents.
@return [Hash] Collection with references pointing to test contents
# File lib/inspec/plugin/v1/plugin_types/source_reader.rb, line 24 def tests raise "SourceReader #{self} does not implement `tests()`. This method is required" end