diff options
Diffstat (limited to 'swatchmaker/watcher.rb')
-rw-r--r-- | swatchmaker/watcher.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/swatchmaker/watcher.rb b/swatchmaker/watcher.rb deleted file mode 100644 index a418aef6..00000000 --- a/swatchmaker/watcher.rb +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env ruby - -require 'rubygems' -require 'directory_watcher' - -dw = DirectoryWatcher.new 'swatch' -dw.interval = 1.0 -dw.add_observer do |*args| - args.each do |event| - if /less/ =~ event.path - `make bootswatch` - puts "#{Time.now.strftime("%I:%M:%S")} make bootswatch (since #{event.path} #{event.type})" - end - end -end - -dw.start -gets # when the user hits "enter" the script will terminate -dw.stop
\ No newline at end of file |