Sha256: 051c6dfcb8fe771fc32e599fdba5f9ced8649a3c7dcd33606625eec13f44a4f0

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

class SlimLint < Aid::Script
  def self.description
    "Runs slim-lint against our templates"
  end

  def self.help
    <<~HELP
    Usage: $ aid slim-lint

    This will run slim-lint against our templates under app/.
    HELP
  end

  def run
    step "Linting slim templates..." do
      system! "slim-lint app/**/*.slim"
    end

    puts
    puts colorize(:green, "Passed!")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aid-0.1.3 examples/slim_lint.rb