Sha256: b2b090ec2465a99cb95e2cc9d73506ba0d9f2fcb98ec4456c5fb40b85c142e67
Contents?: true
Size: 337 Bytes
Versions: 1
Compression:
Stored size: 337 Bytes
Contents
#!/usr/bin/env ruby #require 'dirwatch' require_relative '../lib/dirwatch' begin watcher = Dirwatch::Watcher.from_args ARGV watcher.start rescue Dirwatch::Settings::FileNotFoundError => e puts "Could not find the file #{e.filename}" exit 1 end begin sleep rescue Interrupt ensure puts "shutting down..." watcher.stop end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dirwatch-0.0.1 | bin/dirwatch |