Sha256: 14f1033156424d2dfda1577c06c5aeaaf937a9d50e1fb5dc9e258d5c89d15692

Contents?: true

Size: 941 Bytes

Versions: 1

Compression:

Stored size: 941 Bytes

Contents

#!/usr/bin/env ruby
=begin =======================================================================

# TORK-HERALD 1 2012-02-26 18.1.0

## NAME

tork-herald - reports modified files

## SYNOPSIS

`tork-herald` [*OPTION*]...

## DESCRIPTION

This program monitors the current working directory and prints relative paths
of modified files in batches of single-line JSON arrays to the standard output
stream.

## OPTIONS

`-h`, `--help`
  Show this help manual.

## SEE ALSO

tork(1), tork-herald(1), tork-driver(1), tork-engine(1), tork-master(1)

=end =========================================================================

$0 = File.basename(__FILE__) # for easier identification in ps(1) output

require 'binman'
BinMan.help

require 'guard'
require 'guard/listener'
require 'json'

listener = Guard::Listener.select_and_init({})
listener.on_change {|files| puts JSON.dump(files) }
STDOUT.sync = true # don't buffer puts()
listener.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tork-18.1.0 bin/tork-herald