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

Version Path
pdk-1.11.1 lib/pdk/validate/puppet_validator.rb
pdk-1.11.0 lib/pdk/validate/puppet_validator.rb
pdk-1.10.0 lib/pdk/validate/puppet_validator.rb
pdk-akerl-1.9.1.1 lib/pdk/validate/puppet_validator.rb
pdk-1.9.1 lib/pdk/validate/puppet_validator.rb
pdk-1.9.0 lib/pdk/validate/puppet_validator.rb
pdk-akerl-1.8.0.1 lib/pdk/validate/puppet_validator.rb
pdk-1.8.0 lib/pdk/validate/puppet_validator.rb
pdk-1.7.1 lib/pdk/validate/puppet_validator.rb
pdk-1.7.0 lib/pdk/validate/puppet_validator.rb
pdk-1.6.1 lib/pdk/validate/puppet_validator.rb
pdk-1.6.0 lib/pdk/validate/puppet_validator.rb
pdk-1.5.0 lib/pdk/validate/puppet_validator.rb
pdk-1.4.1 lib/pdk/validate/puppet_validator.rb
pdk-1.3.2 lib/pdk/validate/puppet_validator.rb
pdk-1.3.1 lib/pdk/validate/puppet_validator.rb
pdk-1.3.0 lib/pdk/validate/puppet_validator.rb