class Taeval::Hadolint::Config
Attributes
path[R]
solutions[R]
Public Class Methods
new(conf_h)
click to toggle source
# File lib/taeval/hadolint/config.rb, line 9 def initialize(conf_h) @path = path_of(conf_h.fetch('path', '')) if !File.exist?(@path) raise "Path of hadolint (#{@path}) does not exist." end @solutions = path_of(conf_h.dig('solution', 'path')) if !File.exist?(@solutions) raise "Path of solutions (#{@solutions}) does not exist." end end