Class: PrivateGemServer::Source::Git
- Inherits:
-
PrivateGemServer::Source
- Object
- PrivateGemServer::Source
- PrivateGemServer::Source::Git
- Defined in:
- lib/private_gem_server/source/git.rb
Constant Summary collapse
- DEBOUNCE =
Minimum number of seconds between refreshes
10
Constants inherited from PrivateGemServer::Source
Instance Attribute Summary
Attributes inherited from PrivateGemServer::Source
Instance Method Summary collapse
Methods inherited from PrivateGemServer::Source
Constructor Details
This class inherits a constructor from PrivateGemServer::Source
Instance Method Details
#refresh! ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/private_gem_server/source/git.rb', line 10 def refresh! return if @last_refresh && (Time.now - @last_refresh) < DEBOUNCE prepare_git_files! check_out_or_fetch! find_new_versions! @last_refresh = Time.now end |