Class: Dependabot::Nuget::CacheManager
- Inherits:
-
Object
- Object
- Dependabot::Nuget::CacheManager
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/nuget/cache_manager.rb
Class Method Summary collapse
Class Method Details
.cache(name) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/dependabot/nuget/cache_manager.rb', line 21 def self.cache(name) return {} if caching_disabled? @cache ||= T.let({}, T.nilable(T::Hash[String, T.untyped])) @cache[name] ||= {} @cache[name] end |
.caching_disabled? ⇒ Boolean
16 17 18 |
# File 'lib/dependabot/nuget/cache_manager.rb', line 16 def self.caching_disabled? ENV["DEPENDABOT_NUGET_CACHE_DISABLED"] == "true" end |