This module tracks the progress of an arbitrary task in a generic fashion. The actual implementation is left up to the thing that derives from this module.
Progress has been aborted, the reason is supplied in msg.
# File lib/rex/ui/progress_tracker.rb, line 77 def abort(msg = nil) end
An error occurred that may result in aborting the progress.
# File lib/rex/ui/progress_tracker.rb, line 71 def error(msg = nil) end
Sets start and step using a range.
# File lib/rex/ui/progress_tracker.rb, line 24 def range=(rng) self.start = rng.begin self.stop = rng.end end
Resets the current step location.
# File lib/rex/ui/progress_tracker.rb, line 51 def reset(n = self.start) self.pos = n end
Sets the start and resets the position.
# File lib/rex/ui/progress_tracker.rb, line 32 def start=(start) @start = start self.pos = start end
Passes a generic status message that isn't necessarily associated with a step event.
# File lib/rex/ui/progress_tracker.rb, line 59 def status(msg = nil) end
Generated with the Darkfish Rdoc Generator 2.