Sha256: f093255c7c019a3961c852f2b9b3567297f4c9e1a686f2d0a7baeec3664392dc

Contents?: true

Size: 482 Bytes

Versions: 2

Compression:

Stored size: 482 Bytes

Contents

module Checker
  module Modules
    class Haml < Base
      extensions "haml"

      private

      def check_one(file, _opts = {})
        Checker::Result.result(self, plain_command("haml --check #{file} >> /dev/null"))
      end

      def check_for_executable
        silent_command("haml -v")
      end

      def dependency_message
        str = "Executable not found\n"
        str << "Install haml from rubygems: 'gem install haml'\n"
        str
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
checker-0.8.0.beta2 lib/checker/modules/haml.rb
checker-0.8.0.beta lib/checker/modules/haml.rb