Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env ruby
require 'rubygems'
gem 'fssm'
require 'fssm'

monitor = FSSM::Monitor.new

monitor.path '/path/to/deployment', '.revision' do
  update do |base, relative|
    # execute system commands here like that
    `cd /path/to/deployment; rake test`
  end
end

monitor.run