a guest May 23rd, 2018 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- task :update => :environment do
- start = Time.now
- diff = 60 - (Time.now - start).to_i
- sleep diff unless diff <= 0
RAW Paste Data