Sha256: a41c4260b4db664f6e4779b3dc0eb6625bc06629e2622a79a5f3ff456ffa9373

Contents?: true

Size: 314 Bytes

Versions: 21

Compression:

Stored size: 314 Bytes

Contents

module GoogleSafeBrowsing
  class Rescheduler
    @queue = :google_safe_browsing

    def self.perform
      puts "Running Update"
      delay = APIv2.update
      puts "Scheduling new update in #{delay} seconds"
      Resque.enqueue_in(delay.seconds, Rescheduler)
      puts "Update scheduled"
    end

  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
google_safe_browsing-0.1.0 lib/google_safe_browsing/rescheduler.rb