Questions tagged [fssm]

The File System State Monitor keeps track of the state of any number of paths and will fire events when said state changes.

The File System State Monitor keeps track of the state of any number of paths and will fire events when said state changes (create/update/delete). FSSM supports using FSEvents on MacOS, Inotify on GNU/Linux, and polling anywhere else.

Homepage: https://github.com/ttilley/fssm

5 questions
1
vote
1 answer

Making FSSM gem (file watcher) do it's thing to all files when it boots

I have a simple FSSM (File System State Monitor) script setup to watch some files and do some things with them when they are changed. It's woking great. However, I want it to process any files it has an update handler for when I boot my script. As…
Alex Wayne
  • 178,991
  • 47
  • 309
  • 337
1
vote
0 answers

Octopress FSSM Issue Rake preview

Hey guys I am currently running an octopress blog and unfortunately I ran into a FSSM dead message, I tried options such as Octopress failed on running rake preview and this Rake Preview not working in Octopress and many others. I still get this…
lantern77
  • 103
  • 1
  • 2
  • 12
1
vote
1 answer

Stopping FSSM processes when ruby exits

I'm working on a piece of code which monitors a directory and performs certain tasks when a new file is created in that directory. I'm using FSSM and my (simplified) code looks like this: require 'fssm' class FileWatcher def initialize …
barry
  • 4,037
  • 6
  • 41
  • 68
0
votes
2 answers

Error using FSSM to monitor SASS files

I'm monitoring a theme folder in a WordPress project to watch .scss files and run them througg the command line sass tool to create clean .css files. The script works in so much as it does the conversion put it fails to provide any output as it gets…
simonyoung
  • 845
  • 3
  • 10
  • 22
0
votes
2 answers

Ruby block scope - how to call instance method

I'm having a bit of trouble with a block in Ruby. I've created a class which monitors a directory using the fssm gem. When a change occurs I want to notify observers. I'm using the Observable module. Code: require 'fssm' require 'observer' class…
barry
  • 4,037
  • 6
  • 41
  • 68