Sha256: f0ccdc8e40e0c32daf042f439b14d6ec091312150ab20636338df03813ec518c
Contents?: true
Size: 701 Bytes
Versions: 1
Compression:
Stored size: 701 Bytes
Contents
module Checker module Modules class Sass def self.check puts ">> Sass <<" unless Sass.check_for_executable puts "sass executable NOT FOUND, OMITTING..." return true end files = Utils.files_modified files.delete_if {|f| !f.ends_with?(".scss") and !f.ends_with?(".sass")} files.map! do |f| puts "Checking #{f}..." Sass.check_one(f) end files.all_true? end def self.check_one(file) system("sass #{file} > /dev/null") end def self.check_for_executable cmd = "sass -v" system(cmd) $?.exitstatus == 0 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
checker-0.0.3 | lib/checker/modules/sass.rb |