Class: BB::Cache
- Inherits:
-
Object
- Object
- BB::Cache
- Defined in:
- lib/cocoapods-bb-PodAssistant/config/cache_path.rb
Instance Method Summary collapse
- #cachePath ⇒ Object
-
#initialize(stable_source = nil) ⇒ Cache
constructor
A new instance of Cache.
Constructor Details
#initialize(stable_source = nil) ⇒ Cache
Returns a new instance of Cache.
3 4 5 6 7 8 |
# File 'lib/cocoapods-bb-PodAssistant/config/cache_path.rb', line 3 def initialize(stable_source = nil) if stable_source.nil? stable_source = "https://git.babybus.co/babybus/ios/Specs/stable-specs.git" end @stable_source = stable_source end |
Instance Method Details
#cachePath ⇒ Object
10 11 12 |
# File 'lib/cocoapods-bb-PodAssistant/config/cache_path.rb', line 10 def cachePath() File.join(File.('~/.cache'), 'cocoapods-linkline','stable',@stable_source.split('/').last.chomp('.git').to_s) end |