Sha256: 1dfacddd3cc185646592131edf1ae64c64e7167e369b81868c3b03e6b38d71e5

Contents?: true

Size: 957 Bytes

Versions: 37

Compression:

Stored size: 957 Bytes

Contents

module Mihari
  module Mixins
    module Configuration
      #
      # Load config file into hash
      #
      # @param [String] path Path to YAML file
      #
      # @return [Hash]
      #
      def load_config: (String path) -> Hash

      #
      # Validate config schema
      #
      # @param [Hash] config
      #
      def validate_config: (Hash config) -> void

      #
      # Returns a template for config
      #
      # @return [String] A template for config
      #
      def config_template: () -> String

      #
      # Create (blank) config file
      #
      # @param [String] filename
      # @param [Dry::Files] files
      # @param [String] template
      #
      # @return [nil]
      #
      def initialize_config_yaml: (String filename, ?untyped files, ?template: String template) -> nil

      private

      def show_validation_errors: (untyped errors) -> void

      def _load_config: (String path) -> untyped
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
mihari-4.12.0 sig/lib/mihari/mixins/configuration.rbs
mihari-4.11.0 sig/lib/mihari/mixins/configuration.rbs
mihari-4.10.0 sig/lib/mihari/mixins/configuration.rbs
mihari-4.9.0 sig/lib/mihari/mixins/configuration.rbs
mihari-4.8.0 sig/lib/mihari/mixins/configuration.rbs
mihari-4.7.4 sig/lib/mihari/mixins/configuration.rbs
mihari-4.7.3 sig/lib/mihari/mixins/configuration.rbs
mihari-4.7.2 sig/lib/mihari/mixins/configuration.rbs
mihari-4.7.1 sig/lib/mihari/mixins/configuration.rbs
mihari-4.7.0 sig/lib/mihari/mixins/configuration.rbs
mihari-4.6.1 sig/lib/mihari/mixins/configuration.rbs
mihari-4.6.0 sig/lib/mihari/mixins/configuration.rbs
mihari-4.5.3 sig/lib/mihari/mixins/configuration.rbs
mihari-4.5.2 sig/lib/mihari/mixins/configuration.rbs
mihari-4.5.1 sig/lib/mihari/mixins/configuration.rbs
mihari-4.5.0 sig/lib/mihari/mixins/configuration.rbs
mihari-4.4.1 sig/lib/mihari/mixins/configuration.rbs
mihari-4.4.0 sig/lib/mihari/mixins/configuration.rbs
mihari-4.3.0 sig/lib/mihari/mixins/configuration.rbs
mihari-4.2.0 sig/lib/mihari/mixins/configuration.rbs