Sha256: c295167f2464eb6c1332a6f95c67dfab6f5e5eebec6b385a50dc130befb6f0f5

Contents?: true

Size: 765 Bytes

Versions: 1

Compression:

Stored size: 765 Bytes

Contents

require 'virtus'

class PuppetDocLint
  class Result
    include Virtus.model
    attribute :class_name, String
    attribute :file_name, String
    attribute :parameters, String
    attribute :no_documentation, Boolean, :default => false
    attribute :documented_parameters,   String, :default => []
    attribute :undocumented_parameters, String, :default => []

    def result_report
      puts "Class name was: #{class_name}"
      puts "File name #{file_name}"
      puts "Parameters found #{parameters}"
      puts "No documentation error: #{no_documentation}"
      puts "Documented parameters found: #{documented_parameters}"
      puts "Undocumented parameters found: #{undocumented_parameters}\n\n"
    end

  end #class Result
end #module PuppetDocLint

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-doc-lint-0.0.1 lib/puppet-doc-lint/result.rb