Sha256: 94d64a16a2b54ccf81dfff5a1daf67dbbfa8da13a8418ebf8642437f09f3a135

Contents?: true

Size: 992 Bytes

Versions: 42

Compression:

Stored size: 992 Bytes

Contents

# encoding: utf-8
# author: Dominik Richter
# author: Christoph Hartmann

require 'utils/plugin_registry'

module Inspec
  module Plugins
    class SourceReader < PluginRegistry::Plugin
      def self.plugin_registry
        Inspec::SourceReader
      end

      # Retrieve this profile's metadata.
      #
      # @return [Inspec::Metadata] profile metadata
      def metadata
        fail "SourceReader #{self} does not implement `metadata()`. This method is required"
      end

      # Retrieve this profile's tests
      #
      # @return [Hash] Collection with references pointing to test contents
      def tests
        fail "SourceReader #{self} does not implement `tests()`. This method is required"
      end

      # Retrieve this profile's libraries
      #
      # @return [Hash] Collection with references pointing to library contents
      def libraries
        fail "SourceReader #{self} does not implement `libraries()`. This method is required"
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
inspec-0.30.0 lib/inspec/plugins/source_reader.rb
inspec-0.29.0 lib/inspec/plugins/source_reader.rb
inspec-0.28.1 lib/inspec/plugins/source_reader.rb
inspec-0.28.0 lib/inspec/plugins/source_reader.rb
inspec-0.27.1 lib/inspec/plugins/source_reader.rb
inspec-0.27.0 lib/inspec/plugins/source_reader.rb
inspec-0.26.0 lib/inspec/plugins/source_reader.rb
inspec-0.25.0 lib/inspec/plugins/source_reader.rb
inspec-0.24.0 lib/inspec/plugins/source_reader.rb
inspec-0.23 lib/inspec/plugins/source_reader.rb
inspec-0.22.1 lib/inspec/plugins/source_reader.rb
inspec-0.22.0 lib/inspec/plugins/source_reader.rb
inspec-0.21.6 lib/inspec/plugins/source_reader.rb
inspec-0.21.5 lib/inspec/plugins/source_reader.rb
inspec-0.21.4 lib/inspec/plugins/source_reader.rb
inspec-0.21.3 lib/inspec/plugins/source_reader.rb
inspec-0.21.2 lib/inspec/plugins/source_reader.rb
inspec-0.21.1 lib/inspec/plugins/source_reader.rb
inspec-0.21.0 lib/inspec/plugins/source_reader.rb
inspec-0.20.1 lib/inspec/plugins/source_reader.rb