Sha256: 722df01f0dba0f01a00ac1e9d2d6fc7e56268398045faf63627a0dca5b67aa29
Contents?: true
Size: 581 Bytes
Versions: 12
Compression:
Stored size: 581 Bytes
Contents
# frozen_string_literal: true module Mihari module Commands module Validator include Mixins::Rule def self.included(thor) thor.class_eval do desc "rule [PATH]", "Validate format of a rule file" def rule(path) rule = load_rule(path) begin validate_rule! rule Mihari.logger.info "Valid format. The input is parsed as the following:\n#{rule.data.to_yaml}" rescue RuleValidationError nil end end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems