Sha256: f63cf0309d4942e9420dd7fb0488b1c5823277cb05ecd2f4e5a13ef3ed4298c2

Contents?: true

Size: 319 Bytes

Versions: 1

Compression:

Stored size: 319 Bytes

Contents

require "spidercrawl/spider_worker"

class Spiderman
  def self.shoot(urls, options, &block)
    spiderman = Spidercrawl::SpiderWorker.new(urls, options)
    yield spiderman if block_given?
    return spiderman.parallel_crawl if options[:parallel] == true
    return spiderman.crawl unless options[:parallel]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spidercrawl-0.3.9 lib/spidercrawl.rb