Sha256: 285a9ec6a5ef1c3c6f8f61b75daa08a3ea337bcfdaa077711b0f3ef468a53959

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

#!/usr/bin/env ruby

require 'puppet-doc-lint'

abort 'puppet-doc-lint: no arguments given ' if ARGV[0].nil?

runner = PuppetDocLint::Runner.new

path = ARGV[0]
if File.directory?(path)
  puppet_files = Dir.glob("#{path}/**/*.pp")
  puts "Puppet docs to be checked: #{puppet_files}"
  results = runner.run(puppet_files)
else
  results = runner.run(ARGV)
end

results.each do |result| 
  result.result_report
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-doc-lint-0.0.1 bin/puppet-doc-lint