class Dumper::Profile
Private Class Methods
new(&block)
click to toggle source
# File lib/dumper/profile.rb, line 25 def initialize(&block) add_observer Dumper::Logger.new min = pool_size[:min] max = pool_size[:max] @pool = Thread.pool min, max notify_observers error: "Using #{min}:#{max || min} threads..." instance_eval &block end
Private Instance Methods
dump(url, path, *args)
click to toggle source
# File lib/dumper/profile.rb, line 37 def dump(url, path, *args) raise NotImplementedError end
shutdown()
click to toggle source
# File lib/dumper/profile.rb, line 41 def shutdown @pool.shutdown end