Sha256: 751f35aef9553c979e7a3e45eb59d841c43b82939522b3cc1accfa2c1987b340
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
#!/usr/bin/env ruby require File.expand_path('../../vendor/rucola/fsevents', __FILE__) path, command = ARGV unless path && command puts "Usage: #{$0} [PATH] [COMMAND]" exit else unless File.exist?(path) puts "The given path `#{path}' does not exist." exit 1 end end path = File.expand_path(path) file, path = path, File.dirname(path) unless File.directory?(path) puts "Watching for changes on `#{file || path}'" Rucola::FSEvents.start_watching(path) do |events| unless file && !events.find { |e| e.last_modified_file == file } system command end end OSX::NSApplication.sharedApplication.run
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alloy-kicker-0.1.0 | bin/kicker |