class Runcobo::Tasks::Watcher

Overview

Detects changed files by comparing modification times between scans. Polling needs only the standard library and works the same on every platform.

Defined in:

tasks/watcher.cr

Constant Summary

CONFIGS = ["runcobo.yml", "sqlc.yaml"] of ::String
SOURCES = ["src/**/*.cr", "src/**/*.jbuilder", "src/**/*.water", "shard.lock"] of ::String

Constructors

Instance Method Summary

Constructor Detail

def self.new(root : Path, patterns : Array(String) = SOURCES) #

[View source]

Instance Method Detail

def changes : Array(String) #

Files added, modified or removed since the previous call, relative to the root.


[View source]
def scan : Hash(String, Time) #

[View source]