Sha256: 8acb3e080d36a0a9186f3681c8b75372cf25385539897c65fee9af39ab1c75db
Contents?: true
Size: 622 Bytes
Versions: 17
Compression:
Stored size: 622 Bytes
Contents
require 'pdk' require 'pdk/cli/exec' require 'pdk/validate/base_validator' require 'pdk/validate/puppet/puppet_lint' require 'pdk/validate/puppet/puppet_syntax' module PDK module Validate class PuppetValidator < BaseValidator def self.name 'puppet' end def self.puppet_validators [PuppetSyntax, PuppetLint] end def self.invoke(report, options = {}) exit_code = 0 puppet_validators.each do |validator| exit_code = validator.invoke(report, options) break if exit_code != 0 end exit_code end end end end
Version data entries
17 entries across 17 versions & 2 rubygems