
Untitled
By: a guest on
May 8th, 2012 | syntax:
None | size: 0.56 KB | hits: 19 | expires: Never
def update_monitoring_state_for_paths(checked_paths, unchecked_paths) #ckdake
change_found = false
flatten_paths do |child, flattened_path|
if checked_paths.include?(flattened_path) && child.unmonitored?
puts "im not monitored and i should be!"
child.start_monitoring
change_found = true
end
if unchecked_paths.include?(flattened_path) && child.monitored?
puts "im monitored and i should not be!"
child.stop_monitoring
change_found = true
end
end
change_found
end