search for: getpasswdswork

Displaying 1 result from an estimated 1 matches for "getpasswdswork".

Did you mean: getpasswdsworker
2007 Sep 24
3
Trouble using backgroundrb
...----lib/workers/get_passwds_worker.rb-------------------- # Put your code that runs your task inside the do_work method it will be # run automatically in a thread. You have access to all of your rails # models. You also get logger and results method inside of this class # by default. class Passwd::GetPasswdsWorker < BackgrounDRb::Worker::RailsBase attr_reader :progress def do_work(args) @progress = 0 @progressinterval = 100/System.count System.find_all.each do |sys| getAndParsePasswdFile(sys.name) @progress += @progressinterval end end def getAndParsePasswdFile(sys)...