Sha256: 43ef74f516ca357cbf1775bae20219333f97f17124fabac63cd3a8eebfbc76f4

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

require 'refinements/string_colorization'

using StringColorization

module PanamaxTemplateValidator
  class Repo

    def initialize
      @errors = []
    end

    def validate
      puts ' --- Validating .pmx files in working directory --- '
      Dir.glob('*.pmx') do |file|
        file = TemplateFile.new(file)
        file.validate
        @errors += file.errors
      end

      if @errors.empty?
        puts 'THIS REPO IS VALID!'.green
        exit 0
      else
        exit 1
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
panamax_template_validator-0.0.2 lib/panamax_template_validator/repo.rb