Adding some limits and monitoring with iNotify
This commit is contained in:
@@ -38,6 +38,9 @@ module Pipeline::Util
|
|||||||
notifier = INotify::Notifier.new
|
notifier = INotify::Notifier.new
|
||||||
notifier.watch("#{workdir}/iteration", :moved_to, :create) do |event|
|
notifier.watch("#{workdir}/iteration", :moved_to, :create) do |event|
|
||||||
puts "!!!!!!!!!!! #{event.name} is now in iteration!"
|
puts "!!!!!!!!!!! #{event.name} is now in iteration!"
|
||||||
|
notifier.watch(event.name, :modify) do |event|
|
||||||
|
puts event
|
||||||
|
end
|
||||||
end
|
end
|
||||||
notifier.watch("#{workdir}/tmp", :moved_to, :create) do |event|
|
notifier.watch("#{workdir}/tmp", :moved_to, :create) do |event|
|
||||||
puts "!!!!!!!!!!! #{event.name} is now in tmp!"
|
puts "!!!!!!!!!!! #{event.name} is now in tmp!"
|
||||||
|
|||||||
Reference in New Issue
Block a user