Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
dont autoupdate if it is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dickeyxxx committed Jan 16, 2015
1 parent 30c488c commit 539f31b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/heroku/updater.rb
Expand Up @@ -87,6 +87,7 @@ def self.wait_for_lock(wait_for=5, check_every=0.5)
end

def self.autoupdate
return if disable
# if we've updated in the last hour, don't try again
if File.exists?(last_autoupdate_path)
return if (Time.now.to_i - File.mtime(last_autoupdate_path).to_i) < 60*60
Expand Down

0 comments on commit 539f31b

Please sign in to comment.