class PrelandsRails::CreateSimpleSource::ValidateZipContent::ValidateCss

Валидирует все css файлы.

Public Instance Methods

act() click to toggle source
# File lib/prelands_rails/create_simple_source/validate_zip_content/validate_css.rb, line 23
def act
  errors =
    incoming_css_files.map do |key, content|
      content = Css.new(content)
      next if content.valid?
      [key, content.errors]
    end.compact.to_h
  fail! errors: errors if errors.any?
end