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.
5 6 7 8 9 10 |
# File 'lib/cocoapods-bb-PodAssistant/config/cache_path.rb', line 5 def initialize(stable_source = nil) if stable_source.nil? stable_source = StableSource.stable_default_source end @stable_source = stable_source end |
Instance Method Details
#cachePath ⇒ Object
12 13 14 |
# File 'lib/cocoapods-bb-PodAssistant/config/cache_path.rb', line 12 def cachePath() File.join(File.('~/.cache'), 'cocoapods-bb-PodAssistant','stable',@stable_source.split('/').last.chomp('.git').to_s) end |