Sha256: 0de98ad7a2957aca5da230a6d5c202ade03a9e75f62a8dd4b1320ce0aea8a8d4

Contents?: true

Size: 668 Bytes

Versions: 1

Compression:

Stored size: 668 Bytes

Contents

require 'pdk'
require 'pdk/cli/exec'
require 'pdk/validators/base_validator'

module PDK
  module Validate
    class PuppetParser < BaseValidator
      def self.name
        'puppet-parser'
      end

      def self.cmd
        'puppet'
      end

      def self.pattern
        '**/**.pp'
      end

      def self.spinner_text
        _('Checking Puppet manifest syntax')
      end

      def self.parse_options(_options, targets)
        %w[parser validate].concat(targets)
      end

      def self.parse_output(_report, _json_data)
        # TODO: handle outputs
        # report.add_event(result.merge(state: :passed, severity: :ok))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pdk-0.2.0 lib/pdk/validators/puppet/puppet_parser.rb